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

Add a Link button to messages

Allows users to copy the URL for a specific message and send it to
another person.
This commit is contained in:
James Hillyerd
2013-10-25 13:29:26 -07:00
parent ea7274e5dd
commit 47cba08c33
4 changed files with 33 additions and 14 deletions

View File

@@ -34,6 +34,7 @@ func setupRoutes(cfg config.WebConfig) {
// Root
r.Path("/").Handler(handler(RootIndex)).Name("RootIndex").Methods("GET")
r.Path("/status").Handler(handler(RootStatus)).Name("RootStatus").Methods("GET")
r.Path("/link/{name}/{id}").Handler(handler(MailboxLink)).Name("MailboxLink").Methods("GET")
r.Path("/mailbox").Handler(handler(MailboxIndex)).Name("MailboxIndex").Methods("GET")
r.Path("/mailbox/{name}").Handler(handler(MailboxList)).Name("MailboxList").Methods("GET")
r.Path("/mailbox/{name}").Handler(handler(MailboxPurge)).Name("MailboxPurge").Methods("DELETE")