Moved swaggerdocs to /api/v1/swagger
This commit is contained in:
parent
24382f2dc0
commit
1d62b09792
1 changed files with 3 additions and 3 deletions
|
@ -57,12 +57,12 @@ func RegisterRoutes(e *echo.Echo) {
|
||||||
AllowOrigins: []string{"*"},
|
AllowOrigins: []string{"*"},
|
||||||
}))
|
}))
|
||||||
|
|
||||||
// Swagger UI
|
|
||||||
e.Static("/swagger", "public/swagger")
|
|
||||||
|
|
||||||
// API Routes
|
// API Routes
|
||||||
a := e.Group("/api/v1")
|
a := e.Group("/api/v1")
|
||||||
|
|
||||||
|
// Swagger UI
|
||||||
|
a.Static("/swagger", "public/swagger")
|
||||||
|
|
||||||
a.POST("/login", apiv1.Login)
|
a.POST("/login", apiv1.Login)
|
||||||
a.POST("/register", apiv1.RegisterUser)
|
a.POST("/register", apiv1.RegisterUser)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue