From 0c7949b96bbf7afcad60352ee8b772dc6bd7d4d1 Mon Sep 17 00:00:00 2001 From: vincent Date: Tue, 12 Nov 2024 14:16:22 +0800 Subject: [PATCH] Fix the bug that only can call mirror/repos with API key (#171) --- api/router/api.go | 1 - 1 file changed, 1 deletion(-) diff --git a/api/router/api.go b/api/router/api.go index c7802248..a0aeef66 100644 --- a/api/router/api.go +++ b/api/router/api.go @@ -253,7 +253,6 @@ func NewRouter(config *config.Config, enableSwagger bool) (*gin.Engine, error) { apiGroup.GET("/mirrors", mirrorHandler.Index) mirror := apiGroup.Group("/mirror") - mirror.Use(needAPIKey) { mirror.GET("/sources", msHandler.Index) mirror.POST("/sources", msHandler.Create)