This commit is contained in:
wjqserver 2025-04-25 17:14:33 +08:00
parent 47de48bcce
commit a7be65a111
4 changed files with 19 additions and 2 deletions

View file

@ -459,6 +459,10 @@ func main() {
proxy.RoutingHandler(cfg, limiter, iplimiter)(ctx, c)
})
r.Any("/v2/*filepath", func(ctx context.Context, c *app.RequestContext) {
proxy.GhcrRouting(cfg)(ctx, c)
})
r.NoRoute(func(ctx context.Context, c *app.RequestContext) {
proxy.NoRouteHandler(cfg, limiter, iplimiter)(ctx, c)
})