All Downloads are FREE. Search and download functionalities are using the official Maven repository.

handlebars.JavaSpring.libraries.spring-boot.homeController.mustache Maven / Gradle / Ivy

There is a newer version: 1.0.54
Show newest version
package {{configPackage}};

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Home redirection to swagger api documentation 
 */
@Controller
public class HomeController {
    @RequestMapping(value = "/")
    public String index() {
        {{#useOas2}}
        return "redirect:swagger-ui.html";
        {{/useOas2}}
        {{^useOas2}}
        return "redirect:/swagger-ui/";
        {{/useOas2}}
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy