This commit is contained in:
wjqserver 2025-07-31 20:01:03 +08:00
parent 44f28e593a
commit 208ce8a4f9
5 changed files with 80 additions and 72 deletions

View file

@ -399,6 +399,11 @@ func main() {
proxy.RoutingHandler(cfg)(c)
})
r.GET("/github.com/:user/:repo/releases/:tag/download/*filepath", func(c *touka.Context) {
c.Set("matcher", "releases")
proxy.RoutingHandler(cfg)(c)
})
r.GET("/github.com/:user/:repo/archive/*filepath", func(c *touka.Context) {
c.Set("matcher", "releases")
proxy.RoutingHandler(cfg)(c)