new-exporter #5
|
@ -1,7 +1,4 @@
|
||||||
package eu.dnetlib;
|
package eu.dnetlib;
|
||||||
import java.io.IOException;
|
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletResponse;
|
|
||||||
|
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
@ -10,10 +7,10 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
public class SwaggerController {
|
public class SwaggerController {
|
||||||
|
|
||||||
@RequestMapping(value = {
|
@RequestMapping(value = {
|
||||||
"/", "/docs"
|
"/", "/docs", "swagger-ui.html"
|
||||||
})
|
})
|
||||||
public void index(final HttpServletResponse response) throws IOException {
|
public String index() {
|
||||||
response.sendRedirect("swagger-ui.html");
|
return "redirect:swagger-ui/";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue