mirror of
https://github.com/linux-do/new-api.git
synced 2025-11-08 15:13:42 +08:00
fix: enable cors for token routers and dashboard routers
This commit is contained in:
@@ -11,6 +11,7 @@ func SetDashboardRouter(router *gin.Engine) {
|
||||
apiRouter := router.Group("/")
|
||||
apiRouter.Use(gzip.Gzip(gzip.DefaultCompression))
|
||||
apiRouter.Use(middleware.GlobalAPIRateLimit())
|
||||
apiRouter.Use(middleware.CORS())
|
||||
apiRouter.Use(middleware.TokenAuth())
|
||||
{
|
||||
apiRouter.GET("/dashboard/billing/subscription", controller.GetSubscription)
|
||||
|
||||
Reference in New Issue
Block a user