all repos — legit @ d62fb1442bc300dcee2a7c6a9c374201ba1c7ae6

web frontend for git

routes/handler.go (view raw)

 1package routes
 2
 3import (
 4	"github.com/alexedwards/flow"
 5	"icyphox.sh/legit/config"
 6)
 7
 8func Handlers(c *config.Config) *flow.Mux {
 9	mux := flow.New()
10	d := deps{c}
11	mux.HandleFunc("/:name", d.Repo, "GET")
12	mux.HandleFunc("/:name/tree/...", d.Repo, "GET")
13	return mux
14}