add route

This commit is contained in:
Anton Romanov 2018-11-10 21:43:52 +04:00
parent d5f9a81b46
commit e3b248778c

View File

@ -12,6 +12,7 @@ public class MvcConfiguration extends WebMvcConfigurerAdapter {
registry.addViewController("/{articlename:\\w+}");
//registry.addViewController("/admin/{articlename:\\w+}");
registry.addViewController("/papers/{articlename:\\w+}");
registry.addViewController("/grants/{articlename:\\w+}");
registry.addRedirectViewController("/", "/index");
registry.addRedirectViewController("/default", "/index");
}