aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/api_keys_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/api_keys_controller.rb')
-rw-r--r--app/controllers/api_keys_controller.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/app/controllers/api_keys_controller.rb b/app/controllers/api_keys_controller.rb
new file mode 100644
index 000000000..fea8f66b3
--- /dev/null
+++ b/app/controllers/api_keys_controller.rb
@@ -0,0 +1,17 @@
+class ApiKeysController < ChouetteController
+ defaults :resource_class => Api::V1::ApiKey
+
+ belongs_to :referential
+
+ def create
+ create! { referential_path(@referential) }
+ end
+ def update
+ update! { referential_path(@referential) }
+ end
+ def destroy
+ destroy! { referential_path(@referential) }
+ end
+
+end
+