Merge branch 'rawfix' into nilix
This commit is contained in:
commit
9b97b3b209
2 changed files with 2 additions and 2 deletions
|
@ -42,7 +42,7 @@ func Handlers(c *config.Config, t *template.Template) *flow.Mux {
|
||||||
mux.HandleFunc("/static/:file", d.ServeStatic, "GET")
|
mux.HandleFunc("/static/:file", d.ServeStatic, "GET")
|
||||||
mux.HandleFunc("/:name", d.Multiplex, "GET", "POST")
|
mux.HandleFunc("/:name", d.Multiplex, "GET", "POST")
|
||||||
mux.HandleFunc("/:name/tree/:ref/...", d.RepoTree, "GET")
|
mux.HandleFunc("/:name/tree/:ref/...", d.RepoTree, "GET")
|
||||||
mux.HandleFunc("/:name/blob/raw/:ref/...", d.ServeStaticInRepo, "GET")
|
mux.HandleFunc("/:name/raw/:ref/...", d.ServeStaticInRepo, "GET")
|
||||||
mux.HandleFunc("/:name/blob/:ref/...", d.FileContent, "GET")
|
mux.HandleFunc("/:name/blob/:ref/...", d.FileContent, "GET")
|
||||||
mux.HandleFunc("/:name/log/:ref", d.Log, "GET")
|
mux.HandleFunc("/:name/log/:ref", d.Log, "GET")
|
||||||
mux.HandleFunc("/:name/commit/:ref", d.Diff, "GET")
|
mux.HandleFunc("/:name/commit/:ref", d.Diff, "GET")
|
||||||
|
|
|
@ -28,7 +28,7 @@ func transformRelativeURLs(html, repoName, mainBranch string) string {
|
||||||
return strings.ReplaceAll(
|
return strings.ReplaceAll(
|
||||||
html,
|
html,
|
||||||
"=\"./",
|
"=\"./",
|
||||||
fmt.Sprintf("=\"/%s/blob/raw/%s/", repoName, mainBranch))
|
fmt.Sprintf("=\"/%s/raw/%s/", repoName, mainBranch))
|
||||||
}
|
}
|
||||||
|
|
||||||
func (d *deps) isIgnored(name string) bool {
|
func (d *deps) isIgnored(name string) bool {
|
||||||
|
|
Loading…
Reference in a new issue