Fixed no root path for templates and static assets (#12)
This commit is contained in:
parent
c51ca4dd26
commit
4f8a0f8739
5 changed files with 14 additions and 2 deletions
|
|
@ -61,7 +61,7 @@ func RegisterRoutes(e *echo.Echo) {
|
|||
a := e.Group("/api/v1")
|
||||
|
||||
// Swagger UI
|
||||
a.Static("/swagger", "public/swagger")
|
||||
a.Static("/swagger", viper.GetString("service.rootpath")+"/public/swagger")
|
||||
|
||||
a.POST("/login", apiv1.Login)
|
||||
a.POST("/register", apiv1.RegisterUser)
|
||||
|
|
|
|||
Reference in a new issue