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
|
Rev | Line | |
---|
[46fd0c7] | 1 | package edu.gjoko.schedlr.controllers;
|
---|
| 2 |
|
---|
[8bcd64c] | 3 | import org.springframework.security.core.Authentication;
|
---|
| 4 | import org.springframework.security.core.context.SecurityContextHolder;
|
---|
[46fd0c7] | 5 | import org.springframework.stereotype.Controller;
|
---|
| 6 | import org.springframework.ui.Model;
|
---|
| 7 | import org.springframework.web.bind.annotation.GetMapping;
|
---|
| 8 |
|
---|
[8bcd64c] | 9 | import javax.servlet.http.HttpServletRequest;
|
---|
| 10 |
|
---|
[46fd0c7] | 11 | @Controller
|
---|
[77205be] | 12 | public class AdministrationController {
|
---|
[46fd0c7] | 13 |
|
---|
| 14 | @GetMapping(path = "/admin")
|
---|
[77205be] | 15 | public String getAdminPageTemplate(Model model) {
|
---|
[46fd0c7] | 16 | return "admin";
|
---|
| 17 | }
|
---|
[8bcd64c] | 18 |
|
---|
| 19 | @GetMapping(path = "/business_admin")
|
---|
[77205be] | 20 | public String getBusinessAdminPageTemplate(Model model) {
|
---|
[8bcd64c] | 21 | return "business_admin";
|
---|
| 22 | }
|
---|
| 23 |
|
---|
[77205be] | 24 | @GetMapping(path = "/customer_admin")
|
---|
| 25 | public String getCustomerAdminPageTemplate(Model model) {
|
---|
| 26 | return "customer_admin";
|
---|
| 27 | }
|
---|
| 28 |
|
---|
[8bcd64c] | 29 |
|
---|
[46fd0c7] | 30 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.