diff options
author | elijah <elijah@riseup.net> | 2016-03-30 15:38:50 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2016-03-30 15:38:50 -0700 |
commit | bd5ffce445fd91eac32ac1309297e7e3cf05ead8 (patch) | |
tree | 4d107eea848fd3501e049b3b73f81cf7b1ce7595 /app | |
parent | 9a8577a2d19aa51318dce6ff9ffe1bd26f25c09e (diff) |
api: added json error pages, allow "." in the :id param of all api routes
Diffstat (limited to 'app')
-rw-r--r-- | app/views/errors/not_found.json | 4 | ||||
-rw-r--r-- | app/views/errors/server_error.json | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/app/views/errors/not_found.json b/app/views/errors/not_found.json new file mode 100644 index 0000000..2fcc629 --- /dev/null +++ b/app/views/errors/not_found.json @@ -0,0 +1,4 @@ +{ + "error": "not_found", + "message": "Not Found" +}
\ No newline at end of file diff --git a/app/views/errors/server_error.json b/app/views/errors/server_error.json new file mode 100644 index 0000000..d9a1a86 --- /dev/null +++ b/app/views/errors/server_error.json @@ -0,0 +1,4 @@ +{ + "error": "server_error", + "message": "Server Error" +}
\ No newline at end of file |