Refactoring: simplify version generation. Rename API to /api/version. #167

This commit is contained in:
Andrey Smirnov committed 2015-01-13 18:47:41 +03:00
1 parent 982b5dc886
commit d489694ea9
2 files changed
+4 -5

No files matched your search

+2 -1
View File
@@ -16,8 +16,9 @@ func Router(c *ctx.AptlyContext) http.Handler {
router.Use(gin.ErrorLogger())
root := router.Group("/api")
{
root.GET("/", apiVersion)
root.GET("/version", apiVersion)
}
{