new-exporter #5

Merged
michele.artini merged 21 commits from new-exporter into master 2022-04-22 10:27:22 +02:00
1 changed files with 3 additions and 6 deletions
Showing only changes of commit 6e653e1258 - Show all commits

View File

@ -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/";
} }
} }