web frontend for git (tangled's grandpa)
7
fork

Configure Feed

Select the types of activity you want to include in your feed.

routes: wildcard multiplex route at the end

+2 -2
+2 -2
routes/handler.go
··· 30 30 dw.gitsvc.ServeHTTP(w, r) 31 31 } else if r.Method == "GET" { 32 32 log.Println("index:", r.URL.String()) 33 - dw.actualDeps.Index(w, r) 33 + dw.actualDeps.RepoIndex(w, r) 34 34 } 35 35 } 36 36 ··· 54 54 55 55 mux.HandleFunc("/", d.Index, "GET") 56 56 mux.HandleFunc("/:name", dw.Multiplex, "GET", "POST") 57 - mux.HandleFunc("/:name/...", dw.Multiplex, "GET", "POST") 58 57 mux.HandleFunc("/:name/tree/:ref/...", d.RepoTree, "GET") 59 58 mux.HandleFunc("/:name/blob/:ref/...", d.FileContent, "GET") 60 59 mux.HandleFunc("/:name/log/:ref", d.Log, "GET") 61 60 mux.HandleFunc("/:name/commit/:ref", d.Diff, "GET") 62 61 mux.HandleFunc("/:name/refs", d.Refs, "GET") 62 + mux.HandleFunc("/:name/...", dw.Multiplex, "GET", "POST") 63 63 64 64 return mux 65 65 }