Last change
on this file was 77205be, checked in by gjoko kostadinov <gjokokostadinov@…>, 11 months ago |
Add entire code
|
-
Property mode
set to
100755
|
File size:
824 bytes
|
Line | |
---|
1 | package edu.gjoko.schedlr.controllers;
|
---|
2 |
|
---|
3 | import org.springframework.security.core.Authentication;
|
---|
4 | import org.springframework.security.core.context.SecurityContextHolder;
|
---|
5 | import org.springframework.stereotype.Controller;
|
---|
6 | import org.springframework.ui.Model;
|
---|
7 | import org.springframework.web.bind.annotation.GetMapping;
|
---|
8 |
|
---|
9 | import javax.servlet.http.HttpServletRequest;
|
---|
10 |
|
---|
11 | @Controller
|
---|
12 | public 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.