From e12bcc0706a69fd3635e83d46bc7e04959ba4a13 Mon Sep 17 00:00:00 2001 From: konrad Date: Wed, 15 Nov 2017 16:19:20 +0100 Subject: [PATCH] Fixed Status CORS-Shit --- routes/routes.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/routes/routes.go b/routes/routes.go index 1b1e4bb..eb99ef7 100644 --- a/routes/routes.go +++ b/routes/routes.go @@ -54,6 +54,8 @@ func RegisterRoutes(e *echo.Echo) { a.OPTIONS("/authors/:id", SetCORSHeader) a.OPTIONS("/publishers", SetCORSHeader) a.OPTIONS("/publishers/:id", SetCORSHeader) + a.OPTIONS("/status", SetCORSHeader) + a.OPTIONS("/status/:id", SetCORSHeader) a.POST("/login", Login)