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:
@@ -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,
|
||||
})
|
||||
}
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user