From 530f6b4b7682695b002453fa23318362c774fd87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=20Jurmanovi=C4=87?= Date: Sun, 13 Jun 2021 21:47:33 +0200 Subject: [PATCH] cors for wallet-header? --- pkg/api/routes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/api/routes.go b/pkg/api/routes.go index ea1e861..5e20768 100644 --- a/pkg/api/routes.go +++ b/pkg/api/routes.go @@ -15,7 +15,7 @@ func Routes(s *gin.Engine, db *pg.DB) { api := ver.Group("api") auth := ver.Group("auth") - wallet := ver.Group("wallet", middleware.Auth) + wallet := ver.Group("wallet", middleware.CORSMiddleware(), middleware.Auth) walletHeader := wallet.Group("wallet-header", middleware.Auth) transaction := ver.Group("transaction", middleware.Auth) transactionType := ver.Group("transaction-type", middleware.Auth)