aboutsummaryrefslogtreecommitdiff
path: root/app/views/resources
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/resources')
-rw-r--r--app/views/resources/_resource.json.erb1
-rw-r--r--app/views/resources/show.json.erb1
2 files changed, 2 insertions, 0 deletions
diff --git a/app/views/resources/_resource.json.erb b/app/views/resources/_resource.json.erb
new file mode 100644
index 0000000..a3769d6
--- /dev/null
+++ b/app/views/resources/_resource.json.erb
@@ -0,0 +1 @@
+<%= resource.as_json %>
diff --git a/app/views/resources/show.json.erb b/app/views/resources/show.json.erb
new file mode 100644
index 0000000..5855d72
--- /dev/null
+++ b/app/views/resources/show.json.erb
@@ -0,0 +1 @@
+<%= render @resource %>