diff --git a/server/src/main/java/com/mixel/docusphere/DocuSphereApplication.java b/server/src/main/java/com/mixel/docusphere/DocuSphereApplication.java index 0d40dc1..018381f 100644 --- a/server/src/main/java/com/mixel/docusphere/DocuSphereApplication.java +++ b/server/src/main/java/com/mixel/docusphere/DocuSphereApplication.java @@ -17,4 +17,20 @@ public class DocuSphereApplication { public String helloWorld() { return "Hello World!"; } + + @GetMapping("/") + private SomeImportantData index() { + return new SomeImportantData( + "Important keep secret", + new Person("SomeObscure Person", 96, + new FavLanguage("Java", true, 'J') //Although the compiled status is a lie i mean kind of + ) + ); + } + + record SomeImportantData(String name, Person person) {} + + record Person(String name, int age, FavLanguage favLanguage) {} + + record FavLanguage(String name, Boolean compiled, Character FirstCharacter) {} }