source:
src/main/java/edu/gjoko/schedlr/controllers/HomePageController.java@
46fd0c7
Last change on this file since 46fd0c7 was 46fd0c7, checked in by , 16 months ago | |
---|---|
|
|
File size: 636 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 | |
[a436340] | 8 | import java.security.Principal; |
9 | ||
[044bd76] | 10 | @Controller |
[204464d] | 11 | public class HomePageController { |
12 | ||
[46fd0c7] | 13 | @GetMapping(path = "/homepage") |
[a436340] | 14 | public String getHomePageTemplate(Model model, Principal principal) { |
15 | System.out.println(principal); | |
[204464d] | 16 | return "homepage"; |
17 | } | |
[763289e] | 18 | |
[46fd0c7] | 19 | @PostMapping(path = "/homepage") |
[a436340] | 20 | public String postHomePageTemplate(Model model) { |
[9280859] | 21 | return "homepage"; |
22 | } | |
[204464d] | 23 | } |
Note:
See TracBrowser
for help on using the repository browser.