source: src/main/java/edu/gjoko/schedlr/controllers/AdministrationController.java@ 77205be

Last change on this file since 77205be was 77205be, checked in by gjoko kostadinov <gjokokostadinov@…>, 6 months ago

Add entire code

  • Property mode set to 100755
File size: 824 bytes
Line 
1package edu.gjoko.schedlr.controllers;
2
3import org.springframework.security.core.Authentication;
4import org.springframework.security.core.context.SecurityContextHolder;
5import org.springframework.stereotype.Controller;
6import org.springframework.ui.Model;
7import org.springframework.web.bind.annotation.GetMapping;
8
9import javax.servlet.http.HttpServletRequest;
10
11@Controller
12public class AdministrationController {
13
14 @GetMapping(path = "/admin")
15 public String getAdminPageTemplate(Model model) {
16 return "admin";
17 }
18
19 @GetMapping(path = "/business_admin")
20 public String getBusinessAdminPageTemplate(Model model) {
21 return "business_admin";
22 }
23
24 @GetMapping(path = "/customer_admin")
25 public String getCustomerAdminPageTemplate(Model model) {
26 return "customer_admin";
27 }
28
29
30}
Note: See TracBrowser for help on using the repository browser.