Moved swaggerdocs to /api/v1/swagger

This commit is contained in:
kolaente 2018-09-17 18:34:46 +02:00
parent 24382f2dc0
commit 1d62b09792
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -57,12 +57,12 @@ func RegisterRoutes(e *echo.Echo) {
AllowOrigins: []string{"*"},
}))
// Swagger UI
e.Static("/swagger", "public/swagger")
// API Routes
a := e.Group("/api/v1")
// Swagger UI
a.Static("/swagger", "public/swagger")
a.POST("/login", apiv1.Login)
a.POST("/register", apiv1.RegisterUser)