Update to add more properties
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package com.mattrixwv.cipherstream.controller.polysubstitution;
|
||||
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.slf4j.MDC;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.PropertySource;
|
||||
@@ -30,6 +32,10 @@ public class HillCipherController{
|
||||
private String hillName;
|
||||
@Value("${cipher.poly.hill.description}")
|
||||
private String hillDescription;
|
||||
@Value("${cipher.poly.hill.explanation}")
|
||||
private List<String> hillExplanation;
|
||||
@Value("${cipher.poly.hill.facts}")
|
||||
private List<String> hillFacts;
|
||||
|
||||
|
||||
@GetMapping
|
||||
@@ -38,7 +44,7 @@ public class HillCipherController{
|
||||
log.info("Getting info for {}", hillName);
|
||||
|
||||
|
||||
return CipherInfoUtil.buildInfoNode(hillName, hillDescription);
|
||||
return CipherInfoUtil.buildInfoNode(hillName, hillDescription, hillExplanation, hillFacts);
|
||||
}
|
||||
|
||||
@PostMapping("/encode")
|
||||
|
||||
Reference in New Issue
Block a user