1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-18 01:57:02 +00:00

Metrics on about page are working

This commit is contained in:
James Hillyerd
2012-10-23 13:43:40 -07:00
parent 5833bb0701
commit 30d7cbc2a4
8 changed files with 812 additions and 18 deletions

View File

@@ -9,3 +9,9 @@ func RootIndex(w http.ResponseWriter, req *http.Request, ctx *Context) (err erro
"ctx": ctx,
})
}
func RootAbout(w http.ResponseWriter, req *http.Request, ctx *Context) (err error) {
return RenderTemplate("root/about.html", w, map[string]interface{}{
"ctx": ctx,
})
}

View File

@@ -31,6 +31,7 @@ func setupRoutes(cfg config.WebConfig) {
// Root
r.Path("/").Handler(handler(RootIndex)).Name("RootIndex").Methods("GET")
r.Path("/about").Handler(handler(RootAbout)).Name("RootAbout").Methods("GET")
r.Path("/mailbox").Handler(handler(MailboxIndex)).Name("MailboxIndex").Methods("GET")
r.Path("/mailbox/list/{name}").Handler(handler(MailboxList)).Name("MailboxList").Methods("GET")
r.Path("/mailbox/show/{name}/{id}").Handler(handler(MailboxShow)).Name("MailboxShow").Methods("GET")