Ignore:
Timestamp:
07/07/23 12:14:58 (12 months ago)
Author:
HristijanMitic00 <hristijan.mitic.01@…>
Branches:
main
Parents:
1dd9226
Message:

First commit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/project/fmo/app/projcetfmo/Web/HomeController.java

    r1dd9226 rd14176d  
    99@Controller
    1010@RequestMapping({"/","/home"})
    11 public class StoreController {
     11public class HomeController {
    1212
    1313
    1414    @GetMapping
    15     public String getHomePage(){
    16         return "home";
     15    public String getHomePage(Model model){
     16        model.addAttribute("bodyContent", "home");
     17        return "master_template";
    1718    }
    1819
     20    @GetMapping("/access_denied")
     21    public String getAccessDeniedPage(Model model) {
     22        model.addAttribute("bodyContent", "access_denied");
     23        return "master-template";
     24    }
     25
     26
    1927}
Note: See TracChangeset for help on using the changeset viewer.