main
Last change
on this file was d14176d, checked in by HristijanMitic00 <hristijan.mitic.01@…>, 12 months ago |
First commit
|
-
Property mode
set to
100644
|
File size:
670 bytes
|
Rev | Line | |
---|
[1dd9226] | 1 | package project.fmo.app.projcetfmo.Web;
|
---|
| 2 |
|
---|
| 3 |
|
---|
| 4 | import org.springframework.stereotype.Controller;
|
---|
| 5 | import org.springframework.ui.Model;
|
---|
| 6 | import org.springframework.web.bind.annotation.GetMapping;
|
---|
| 7 | import org.springframework.web.bind.annotation.RequestMapping;
|
---|
| 8 |
|
---|
| 9 | @Controller
|
---|
| 10 | @RequestMapping({"/","/home"})
|
---|
[d14176d] | 11 | public class HomeController {
|
---|
[1dd9226] | 12 |
|
---|
| 13 |
|
---|
| 14 | @GetMapping
|
---|
[d14176d] | 15 | public String getHomePage(Model model){
|
---|
| 16 | model.addAttribute("bodyContent", "home");
|
---|
| 17 | return "master_template";
|
---|
[1dd9226] | 18 | }
|
---|
| 19 |
|
---|
[d14176d] | 20 | @GetMapping("/access_denied")
|
---|
| 21 | public String getAccessDeniedPage(Model model) {
|
---|
| 22 | model.addAttribute("bodyContent", "access_denied");
|
---|
| 23 | return "master-template";
|
---|
| 24 | }
|
---|
| 25 |
|
---|
| 26 |
|
---|
[1dd9226] | 27 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.