Last change
on this file was 77205be, checked in by gjoko kostadinov <gjokokostadinov@…>, 6 months ago |
Add entire code
|
-
Property mode
set to
100755
|
File size:
973 bytes
|
Rev | Line | |
---|
[cf9cdbf] | 1 | package edu.gjoko.schedlr.config;
|
---|
| 2 |
|
---|
| 3 | import org.springframework.context.annotation.Configuration;
|
---|
| 4 | import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
|
---|
| 5 | import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
---|
| 6 |
|
---|
| 7 | @Configuration
|
---|
| 8 | public class MvcConfig implements WebMvcConfigurer {
|
---|
| 9 |
|
---|
| 10 | @Override
|
---|
| 11 | public void addViewControllers(ViewControllerRegistry registry) {
|
---|
| 12 | registry.addViewController("/login").setViewName("login");
|
---|
[204464d] | 13 | registry.addViewController("/register_customer").setViewName("register_customer");
|
---|
| 14 | registry.addViewController("/register_business").setViewName("register_business");
|
---|
[cf9cdbf] | 15 | registry.addViewController("/homepage").setViewName("homepage");
|
---|
[46fd0c7] | 16 | registry.addViewController("/admin").setViewName("admin");
|
---|
[8bcd64c] | 17 | registry.addViewController("/business_admin").setViewName("business_admin");
|
---|
[77205be] | 18 | registry.addViewController("/customer_admin").setViewName("customer_admin");
|
---|
[46fd0c7] | 19 | }
|
---|
[cf9cdbf] | 20 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.