1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2026-09-15 08:08:54 +00:00

Reorganize URI routes to be more RESTful

This commit is contained in:
James Hillyerd
2013-10-11 17:16:23 -07:00
parent d8ac1d78b0
commit 7b91a667a1
6 changed files with 25 additions and 19 deletions
+1 -1
View File
@@ -1 +1 @@
curl -i -H "Accept: application/json" --noproxy localhost http://localhost:9000/mailbox/list/$1
curl -i -H "Accept: application/json" --noproxy localhost http://localhost:9000/mailbox/$1
+1
View File
@@ -0,0 +1 @@
curl -i -H "Accept: application/json" --noproxy localhost -X DELETE http://localhost:9000/mailbox/$1/$2
@@ -1 +1 @@
curl -i -H "Accept: application/json" --noproxy localhost http://localhost:9000/mailbox/source/$1/$2
curl -i -H "Accept: application/json" --noproxy localhost http://localhost:9000/mailbox/$1/$2/source