main
Last change
on this file was d14176d, checked in by HristijanMitic00 <hristijan.mitic.01@…>, 19 months ago |
First commit
|
-
Property mode
set to
100644
|
File size:
670 bytes
|
Line | |
---|
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"})
|
---|
11 | public class HomeController {
|
---|
12 |
|
---|
13 |
|
---|
14 | @GetMapping
|
---|
15 | public String getHomePage(Model model){
|
---|
16 | model.addAttribute("bodyContent", "home");
|
---|
17 | return "master_template";
|
---|
18 | }
|
---|
19 |
|
---|
20 | @GetMapping("/access_denied")
|
---|
21 | public String getAccessDeniedPage(Model model) {
|
---|
22 | model.addAttribute("bodyContent", "access_denied");
|
---|
23 | return "master-template";
|
---|
24 | }
|
---|
25 |
|
---|
26 |
|
---|
27 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.