Added cors headers for /namespaces

This commit is contained in:
konrad 2018-09-07 08:20:19 +02:00 committed by kolaente
parent fc8c6c97fd
commit 64639ab832
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 2 additions and 0 deletions

View File

@ -78,6 +78,8 @@ func RegisterRoutes(e *echo.Echo) {
a.OPTIONS("/users/:id", SetCORSHeader)
a.OPTIONS("/lists", SetCORSHeader)
a.OPTIONS("/lists/:id", SetCORSHeader)
a.OPTIONS("/namespaces", SetCORSHeader)
a.OPTIONS("/namespaces/:id", SetCORSHeader)
a.POST("/login", apiv1.Login)
a.POST("/register", apiv1.RegisterUser)