source: src/main/java/edu/gjoko/schedlr/config/MvcConfig.java@ cf9cdbf

Last change on this file since cf9cdbf was cf9cdbf, checked in by Gjoko <goko_kostadinov@…>, 21 months ago

Initial commit.

  • Property mode set to 100644
File size: 728 bytes
Line 
1package edu.gjoko.schedlr.config;
2
3import org.springframework.context.annotation.Configuration;
4import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
5import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
6
7@Configuration
8public class MvcConfig implements WebMvcConfigurer {
9
10 @Override
11 public void addViewControllers(ViewControllerRegistry registry) {
12 registry.addViewController("/login").setViewName("login");
13 registry.addViewController("/register/user").setViewName("register_user");
14 registry.addViewController("/register/business").setViewName("register_business");
15 registry.addViewController("/homepage").setViewName("homepage");
16 }
17}
Note: See TracBrowser for help on using the repository browser.