Update to add more properties

This commit is contained in:
2024-04-24 21:12:57 -04:00
parent 33bc1f6bd9
commit db314eb7f4
65 changed files with 669 additions and 104 deletions

View File

@@ -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;
@@ -28,6 +30,10 @@ public class TrifidCipherController{
private String trifidName;
@Value("${cipher.poly.trifid.description}")
private String trifidDescription;
@Value("${cipher.poly.trifid.explanation}")
private List<String> trifidExplanation;
@Value("${cipher.poly.trifid.facts}")
private List<String> trifidFacts;
@GetMapping
@@ -36,7 +42,7 @@ public class TrifidCipherController{
log.info("Getting info for {}", trifidName);
return CipherInfoUtil.buildInfoNode(trifidName, trifidDescription);
return CipherInfoUtil.buildInfoNode(trifidName, trifidDescription, trifidExplanation, trifidFacts);
}
@PostMapping("/encode")