forked from loafle/openapi-generator-original
16 lines
394 B
Plaintext
16 lines
394 B
Plaintext
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() {
|
|
System.out.println("swagger-ui.html");
|
|
return "redirect:swagger-ui.html";
|
|
}
|
|
} |