mirror of
https://github.com/WJQSERVER-STUDIO/ghproxy.git
synced 2026-02-03 00:01:10 +08:00
refine matcher: will not match releases page
This commit is contained in:
parent
4df21fd258
commit
d232d1cf12
10 changed files with 58 additions and 25 deletions
2
main.go
2
main.go
|
|
@ -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)
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue