Skip to content

Commit

Permalink
Fix the bug that only can call mirror/repos with API key (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
pulltheflower authored Nov 12, 2024
1 parent c4cb2ab commit 2900741
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion api/router/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,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)
Expand Down

0 comments on commit 2900741

Please sign in to comment.