diff options
Diffstat (limited to 'pkg/handler')
| -rw-r--r-- | pkg/handler/git/handler.go | 5 | ||||
| -rw-r--r-- | pkg/handler/router.go | 1 | 
2 files changed, 6 insertions, 0 deletions
| diff --git a/pkg/handler/git/handler.go b/pkg/handler/git/handler.go index 236ac41..e088749 100644 --- a/pkg/handler/git/handler.go +++ b/pkg/handler/git/handler.go @@ -34,3 +34,8 @@ func (g *GitHandler) List(w http.ResponseWriter, _ *http.Request) {  	gitList := &templates.GitListPage{repos}  	templates.WritePageTemplate(w, gitList)  } + +func (g *GitHandler) Item(w http.ResponseWriter, _ *http.Request) { +	gitList := &templates.GitItemPage{} +	templates.WritePageTemplate(w, gitList) +} diff --git a/pkg/handler/router.go b/pkg/handler/router.go index a8c9c6f..1150f2f 100644 --- a/pkg/handler/router.go +++ b/pkg/handler/router.go @@ -33,6 +33,7 @@ func MountHandler(  	mux.Handle("/static/", staticHandler)  	mux.HandleFunc("/config", configHander)  	mux.HandleFunc("/about", aboutHandler.About) +	mux.HandleFunc("/{name}", gitHandler.Item)  	mux.HandleFunc("/", gitHandler.List)  	return mux, nil  } | 
