This commit is contained in:
wjqserver 2025-06-14 06:47:47 +08:00
parent a5bf7686bd
commit d2a0177015
6 changed files with 32 additions and 14 deletions

View file

@ -507,7 +507,7 @@ func main() {
proxy.NoRouteHandler(cfg, limiter, iplimiter)(ctx, c)
})
r.GET("/api.github.com/repos/:user/:repo/*filepath", func(ctx context.Context, c *app.RequestContext) {
r.Any("/api.github.com/repos/:user/:repo/*filepath", func(ctx context.Context, c *app.RequestContext) {
c.Set("matcher", "api")
proxy.RoutingHandler(cfg, limiter, iplimiter)(ctx, c)
})