mirror of https://github.com/perkeep/perkeep.git
Serve /gitweb/ too. Temporary hack.
This commit is contained in:
parent
d5192826d3
commit
77d21931a2
|
@ -184,6 +184,11 @@ func main() {
|
|||
Cgi: &CgiHandler{ExecutablePath: *gitwebScript},
|
||||
Static: http.FileServer(*gitwebFiles, "/code/"),
|
||||
})
|
||||
// For now, also register this alias for convenience.
|
||||
// Some distros' default gitweb config links to resources
|
||||
// in the current directory but Lucid links to /gitweb/ instead.
|
||||
// TODO: specify a gitweb config file.
|
||||
mux.Handle("/gitweb/", http.FileServer(*gitwebFiles, "/gitweb/"))
|
||||
}
|
||||
mux.HandleFunc("/", mainHandler)
|
||||
|
||||
|
|
Loading…
Reference in New Issue