source: src/main/java/project/fmo/app/projcetfmo/Web/HomeController.java

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
Line 
1package project.fmo.app.projcetfmo.Web;
2
3
4import org.springframework.stereotype.Controller;
5import org.springframework.ui.Model;
6import org.springframework.web.bind.annotation.GetMapping;
7import org.springframework.web.bind.annotation.RequestMapping;
8
9@Controller
10@RequestMapping({"/","/home"})
11public 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.