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