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

Rename about page to status

This commit is contained in:
James Hillyerd
2012-10-24 09:48:56 -07:00
parent bf0d6a6be5
commit 606fb124a6
4 changed files with 11 additions and 9 deletions

View File

@@ -31,7 +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("/status").Handler(handler(RootStatus)).Name("RootStatus").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")
@@ -49,6 +49,7 @@ func Start() {
cfg := config.GetWebConfig()
setupRoutes(cfg)
// TODO Make configurable
sessionStore = sessions.NewCookieStore([]byte("something-very-secret"))
addr := fmt.Sprintf("%v:%v", cfg.Ip4address, cfg.Ip4port)