diff --git a/src/main/java/com/deepwaterl/springreacttypescriptboilerplate/HelloController.java b/src/main/java/com/deepwaterl/springreacttypescriptboilerplate/HelloController.java new file mode 100644 index 0000000..cc5e8e5 --- /dev/null +++ b/src/main/java/com/deepwaterl/springreacttypescriptboilerplate/HelloController.java @@ -0,0 +1,15 @@ +package com.deepwaterl.springreacttypescriptboilerplate; + +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RestController; + +import java.util.Date; + +@RestController +public class HelloController { + + @GetMapping("/api/hello") + public String hello() { + return "Hello, the time at the server is now " + new Date() + "\n"; + } +}