From 5035dad869fd545b8f6ab7c84dd58dadef9cb678 Mon Sep 17 00:00:00 2001 From: asteriskzie Date: Wed, 24 Apr 2024 02:02:38 +0700 Subject: [PATCH] Add temporary controller --- .../snackscription/review/ReviewApplication.java | 2 ++ .../review/controller/ReviewController.java | 15 +++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 src/main/java/snackscription/review/controller/ReviewController.java diff --git a/src/main/java/snackscription/review/ReviewApplication.java b/src/main/java/snackscription/review/ReviewApplication.java index f9e2818..ec64e1c 100644 --- a/src/main/java/snackscription/review/ReviewApplication.java +++ b/src/main/java/snackscription/review/ReviewApplication.java @@ -8,6 +8,8 @@ public class ReviewApplication { public static void main(String[] args) { SpringApplication.run(ReviewApplication.class, args); + + } } diff --git a/src/main/java/snackscription/review/controller/ReviewController.java b/src/main/java/snackscription/review/controller/ReviewController.java new file mode 100644 index 0000000..7abe48b --- /dev/null +++ b/src/main/java/snackscription/review/controller/ReviewController.java @@ -0,0 +1,15 @@ +package snackscription.review.controller; + +import org.springframework.http.ResponseEntity; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; + +@Controller +@RequestMapping("/") +public class ReviewController { + @GetMapping("") + public ResponseEntity reviewPage() { + return ResponseEntity.ok().body("Welcome to the review service!"); + } +} \ No newline at end of file