Added cors headers for /namespaces
This commit is contained in:
parent
fc8c6c97fd
commit
64639ab832
1 changed files with 2 additions and 0 deletions
|
@ -78,6 +78,8 @@ func RegisterRoutes(e *echo.Echo) {
|
||||||
a.OPTIONS("/users/:id", SetCORSHeader)
|
a.OPTIONS("/users/:id", SetCORSHeader)
|
||||||
a.OPTIONS("/lists", SetCORSHeader)
|
a.OPTIONS("/lists", SetCORSHeader)
|
||||||
a.OPTIONS("/lists/:id", SetCORSHeader)
|
a.OPTIONS("/lists/:id", SetCORSHeader)
|
||||||
|
a.OPTIONS("/namespaces", SetCORSHeader)
|
||||||
|
a.OPTIONS("/namespaces/:id", SetCORSHeader)
|
||||||
|
|
||||||
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