add route
This commit is contained in:
parent
d5f9a81b46
commit
e3b248778c
@ -12,6 +12,7 @@ public class MvcConfiguration extends WebMvcConfigurerAdapter {
|
|||||||
registry.addViewController("/{articlename:\\w+}");
|
registry.addViewController("/{articlename:\\w+}");
|
||||||
//registry.addViewController("/admin/{articlename:\\w+}");
|
//registry.addViewController("/admin/{articlename:\\w+}");
|
||||||
registry.addViewController("/papers/{articlename:\\w+}");
|
registry.addViewController("/papers/{articlename:\\w+}");
|
||||||
|
registry.addViewController("/grants/{articlename:\\w+}");
|
||||||
registry.addRedirectViewController("/", "/index");
|
registry.addRedirectViewController("/", "/index");
|
||||||
registry.addRedirectViewController("/default", "/index");
|
registry.addRedirectViewController("/default", "/index");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user