Moved swaggerdocs to /api/v1/swagger

This commit is contained in:
kolaente 2018-09-17 18:34:46 +02:00
parent 24382f2dc0
commit 1d62b09792
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 3 additions and 3 deletions

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)