Update to add more properties
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package com.mattrixwv.cipherstream.controller.combination;
|
||||
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.slf4j.MDC;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.PropertySource;
|
||||
@@ -28,6 +30,10 @@ public class AdfgvxCipherController{
|
||||
private String adfgvxName;
|
||||
@Value("${cipher.combination.adfgvx.description}")
|
||||
private String adfgvxDescription;
|
||||
@Value("${cipher.combination.adfgvx.explanation}")
|
||||
private List<String> adfgvxExplanation;
|
||||
@Value("${cipher.combination.adfgvx.facts}")
|
||||
private List<String> adfgvxFacts;
|
||||
|
||||
|
||||
@GetMapping
|
||||
@@ -36,7 +42,7 @@ public class AdfgvxCipherController{
|
||||
log.info("Getting info for {}", adfgvxName);
|
||||
|
||||
|
||||
return CipherInfoUtil.buildInfoNode(adfgvxName, adfgvxDescription);
|
||||
return CipherInfoUtil.buildInfoNode(adfgvxName, adfgvxDescription, adfgvxExplanation, adfgvxFacts);
|
||||
}
|
||||
|
||||
@PostMapping("/encode")
|
||||
|
||||
Reference in New Issue
Block a user