dnet45/webapps/dnet-container-openaireplus/trunk/src/main/java/eu/dnetlib/swagger/configuration/HomeController.java @ 62942
1 |
package eu.dnetlib.swagger.configuration; |
---|---|
2 |
|
3 |
import org.springframework.stereotype.Controller; |
4 |
import org.springframework.web.bind.annotation.RequestMapping; |
5 |
|
6 |
/**
|
7 |
* Home redirection to swagger api documentation
|
8 |
*/
|
9 |
@Controller
|
10 |
public class HomeController { |
11 |
|
12 |
@RequestMapping(value = "/docs") |
13 |
public String index() { |
14 |
return "redirect:swagger-ui.html"; |
15 |
}
|
16 |
}
|