1
0
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:
James Hillyerd
2012-10-10 21:04:28 -07:00
parent 3fe4c937cd
commit 555332c98e
2 changed files with 12 additions and 5 deletions

View File

@@ -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" .}}

View File

@@ -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