1 package org.oxerr.spring.security.otp.samples.helloworld;
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("/home").setViewName("home");
13 registry.addViewController("/").setViewName("home");
14 registry.addViewController("/hello").setViewName("hello");
15 registry.addViewController("/login").setViewName("login");
16 registry.addViewController("/otp").setViewName("otp");
17 }
18
19 }