Add /api route to show API version #116

This commit is contained in:
Sylvain Baubeau committed 2015-01-12 10:56:54 +01:00
1 parent 98ca0cdf33
commit 6c7f3b3bbd
2 files changed
+16

No files matched your search

+4
View File
@@ -16,6 +16,10 @@ func Router(c *ctx.AptlyContext) http.Handler {
router.Use(gin.ErrorLogger())
root := router.Group("/api")
{
root.GET("/", apiVersion)
}
{
root.GET("/repos", apiReposList)
root.POST("/repos", apiReposCreate)