refine matcher: will not match releases page

This commit is contained in:
wjqserver 2025-07-29 23:27:42 +08:00
parent 4df21fd258
commit d232d1cf12
10 changed files with 58 additions and 25 deletions

View file

@ -394,7 +394,7 @@ func main() {
setupPages(cfg, r)
r.SetRedirectTrailingSlash(false)
r.GET("/github.com/:user/:repo/releases/*filepath", func(c *touka.Context) {
r.GET("/github.com/:user/:repo/releases/download/*filepath", func(c *touka.Context) {
c.Set("matcher", "releases")
proxy.RoutingHandler(cfg)(c)
})