diff options
Diffstat (limited to '')
-rw-r--r-- | main.go | 6 | ||||
-rw-r--r-- | templates/index.html | 2 |
2 files changed, 4 insertions, 4 deletions
@@ -34,9 +34,9 @@ func main() { serve_source() http.HandleFunc("/{$}", handle_index) - http.HandleFunc("/{group_name}/repos/{$}", handle_group_repos) - http.HandleFunc("/{group_name}/repos/{repo_name}/{$}", handle_repo_index) - http.HandleFunc("/{group_name}/repos/{repo_name}/tree/{ref}/{rest...}", handle_repo_tree) + http.HandleFunc("/g/{group_name}/repos/{$}", handle_group_repos) + http.HandleFunc("/g/{group_name}/repos/{repo_name}/{$}", handle_repo_index) + http.HandleFunc("/g/{group_name}/repos/{repo_name}/tree/{ref}/{rest...}", handle_repo_tree) listener, err := net.Listen(config.HTTP.Net, config.HTTP.Addr) if err != nil { diff --git a/templates/index.html b/templates/index.html index 139abb0..79e3cba 100644 --- a/templates/index.html +++ b/templates/index.html @@ -13,7 +13,7 @@ <ul> {{- range .categories }} <li> - <a href="{{ . }}/repos/">{{ . }}</a> + <a href="g/{{ . }}/repos/">{{ . }}</a> </li> {{- end }} </ul> |