- Timestamp:
- 10/31/22 23:42:15 (2 years ago)
- Branches:
- master
- Children:
- 044bd76
- Parents:
- 204464d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/edu/gjoko/schedlr/controllers/HomePageController.java
r204464d r763289e 4 4 import org.springframework.ui.Model; 5 5 import org.springframework.web.bind.annotation.GetMapping; 6 import org.springframework.web.bind.annotation.PostMapping; 7 import org.springframework.web.bind.annotation.RestController; 6 8 7 @ Controller9 @RestController(value = "/homepage") 8 10 public class HomePageController { 9 11 10 @GetMapping (value = "/homepage")12 @GetMapping 11 13 public String getHomePageTemplate(Model model) { 12 14 return "homepage"; 13 15 } 16 17 @PostMapping 18 public String postHomePageTemplate(Model model) { 19 return "homepage"; 20 } 14 21 }
Note:
See TracChangeset
for help on using the changeset viewer.