diff --git a/src/main/java/dev/mars3142/fhq/timezone_service/root/controller/web/RootController.java b/src/main/java/dev/mars3142/fhq/timezone_service/root/controller/web/RootController.java new file mode 100644 index 0000000..8d40e11 --- /dev/null +++ b/src/main/java/dev/mars3142/fhq/timezone_service/root/controller/web/RootController.java @@ -0,0 +1,21 @@ +package dev.mars3142.fhq.timezone_service.root.controller.web; + +import java.net.URI; +import org.springframework.http.HttpStatus; +import org.springframework.http.ResponseEntity; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +@RestController +@RequestMapping("/") +public class RootController { + + @GetMapping + public ResponseEntity getRoot() { + return ResponseEntity.status(HttpStatus.SEE_OTHER) + .location(URI.create("https://firmware-hq.dev")) + .build(); + } + +}