Skip to content

Commit

Permalink
QA.
Browse files Browse the repository at this point in the history
  • Loading branch information
fxprunayre committed Aug 9, 2024
1 parent c8feefc commit 88e217c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/main/java/org/geonetwork/config/MvcConfiguration.java
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
/*
* (c) 2003 Open Source Geospatial Foundation - all rights reserved
* This code is licensed under the GPL 2.0 license,
* available at the root application directory.
*/
package org.geonetwork.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/** MVC configuration.
*
*/
/** MVC configuration. */
@Configuration
public class MvcConfiguration implements WebMvcConfigurer {

@Override
public void addViewControllers(ViewControllerRegistry registry) {
registry.addViewController("/home").setViewName("home");
registry.addViewController("/").setViewName("home");
registry.addViewController("/home").setViewName("home");
registry.addViewController("/login").setViewName("login");
}

Expand Down

0 comments on commit 88e217c

Please sign in to comment.