mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-17 09:37:02 +00:00
Add a way to enter a username to view. Cleanup route formatting.
This commit is contained in:
@@ -1,7 +1,13 @@
|
|||||||
{{set "title" "Home" .}}
|
{{set "title" "Inbucket" .}}
|
||||||
{{template "header.html" .}}
|
{{template "header.html" .}}
|
||||||
|
|
||||||
<h1>Your Application Is Ready</h1>
|
<h1>Inbucket</h1>
|
||||||
|
|
||||||
|
<form action="/mailbox" method="GET">
|
||||||
|
<b>Enter a username to view their mailbox</b>
|
||||||
|
<input type="text" name="name">
|
||||||
|
<input type=submit value="Go">
|
||||||
|
</form>
|
||||||
|
|
||||||
{{template "footer.html" .}}
|
{{template "footer.html" .}}
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
GET / Application.Index
|
GET / Application.Index
|
||||||
GET /mailbox/{name} Mailbox.Index
|
GET /mailbox/{name} Mailbox.Index
|
||||||
|
GET /mailbox Mailbox.Index
|
||||||
GET /mailbox/list/{name} Mailbox.List
|
GET /mailbox/list/{name} Mailbox.List
|
||||||
GET /mailbox/show/{name}/{id} Mailbox.Show
|
GET /mailbox/show/{name}/{id} Mailbox.Show
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user