From 3f46e78a032e4da797f9324322ceb85a62c338a1 Mon Sep 17 00:00:00 2001 From: vincent Date: Thu, 26 Sep 2024 16:38:19 +0800 Subject: [PATCH] Remove only API key auth for mirrors (#129) --- api/router/api.go | 1 - 1 file changed, 1 deletion(-) diff --git a/api/router/api.go b/api/router/api.go index c40851bc..ddb7082b 100644 --- a/api/router/api.go +++ b/api/router/api.go @@ -252,7 +252,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)