source:
src/main/java/edu/gjoko/schedlr/controllers/HomePageController.java@
950fa0d
Last change on this file since 950fa0d was 8bcd64c, checked in by , 15 months ago | |
---|---|
|
|
File size: 543 bytes |
Rev | Line | |
---|---|---|
[204464d] | 1 | package edu.gjoko.schedlr.controllers; |
2 | ||
3 | import org.springframework.stereotype.Controller; | |
4 | import org.springframework.ui.Model; | |
5 | import org.springframework.web.bind.annotation.GetMapping; | |
[763289e] | 6 | import org.springframework.web.bind.annotation.PostMapping; |
[204464d] | 7 | |
[044bd76] | 8 | @Controller |
[204464d] | 9 | public class HomePageController { |
10 | ||
[46fd0c7] | 11 | @GetMapping(path = "/homepage") |
[8bcd64c] | 12 | public String getHomePageTemplate(Model model) { |
[204464d] | 13 | return "homepage"; |
14 | } | |
[763289e] | 15 | |
[46fd0c7] | 16 | @PostMapping(path = "/homepage") |
[a436340] | 17 | public String postHomePageTemplate(Model model) { |
[9280859] | 18 | return "homepage"; |
19 | } | |
[204464d] | 20 | } |
Note:
See TracBrowser
for help on using the repository browser.