From e3b248778c2e9ffd0ab716d79ba196c74c4a61b5 Mon Sep 17 00:00:00 2001 From: Anton Romanov Date: Sat, 10 Nov 2018 21:43:52 +0400 Subject: [PATCH] add route --- src/main/java/ru/ulstu/configuration/MvcConfiguration.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/ru/ulstu/configuration/MvcConfiguration.java b/src/main/java/ru/ulstu/configuration/MvcConfiguration.java index 14e6337..8543847 100644 --- a/src/main/java/ru/ulstu/configuration/MvcConfiguration.java +++ b/src/main/java/ru/ulstu/configuration/MvcConfiguration.java @@ -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"); }