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
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -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)