all repos — elgit @ 856f66808b913baff13c815daec3cdde7121e3bd

fork of legit: web frontend for git, written in go

all: init

commit

856f66808b913baff13c815daec3cdde7121e3bd

1 file changed, 14 insertions(+), 0 deletions(-)

changed files
A routes/handler.go
@@ -0,0 +1,14 @@
+package routes + +import ( + "github.com/alexedwards/flow" + "icyphox.sh/legit/config" +) + +func Handlers(c *config.Config) *flow.Mux { + mux := flow.New() + d := deps{c} + mux.HandleFunc("/:name", d.Repo, "GET") + mux.HandleFunc("/:name/tree/...", d.Repo, "GET") + return mux +}