dnet-applications/apps/dnet-exporter-api/src/main/java/eu/dnetlib/SwaggerController.java

17 lines
335 B
Java
Raw Normal View History

2022-02-07 10:09:18 +01:00
package eu.dnetlib;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
public class SwaggerController {
@RequestMapping(value = {
2022-09-09 11:01:51 +02:00
"/", "/docs", "swagger-ui.html", "swagger-ui/"
2022-02-07 10:09:18 +01:00
})
2022-03-23 08:49:13 +01:00
public String index() {
2022-09-09 11:01:51 +02:00
return "redirect:swagger-ui/index.html";
2022-02-07 10:09:18 +01:00
}
}