MvcConfig hinzugefügt

This commit is contained in:
Tobias Peper 2025-03-28 17:41:01 +01:00
parent 7ceeaa1fd9
commit a9a4cde854

View File

@ -0,0 +1,17 @@
package info.peper.vz.rest;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@Configuration
public class MvcConfig implements WebMvcConfigurer {
@Override
public void addViewControllers(ViewControllerRegistry registry) {
registry.addViewController("/rest-vz")
.setViewName("forward:/rest-vz/index.html");
registry.addViewController("/rest-vz/")
.setViewName("forward:/rest-vz/index.html");
}
}