summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2016-03-30 15:38:50 -0700
committerelijah <elijah@riseup.net>2016-03-30 15:38:50 -0700
commitbd5ffce445fd91eac32ac1309297e7e3cf05ead8 (patch)
tree4d107eea848fd3501e049b3b73f81cf7b1ce7595 /app
parent9a8577a2d19aa51318dce6ff9ffe1bd26f25c09e (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.json4
-rw-r--r--app/views/errors/server_error.json4
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