diff options
| author | Marc Florisson | 2012-12-14 11:47:11 +0100 | 
|---|---|---|
| committer | Marc Florisson | 2012-12-14 11:47:11 +0100 | 
| commit | a2f22fcaa3415b90d01ee04574818ec9595275a0 (patch) | |
| tree | fee581df78c4543ca5e87070c0ba4da061083334 /app/controllers/api_keys_controller.rb | |
| parent | 56dfbf2382a399084e633f38c4ea9eaa48124dd1 (diff) | |
| download | chouette-core-a2f22fcaa3415b90d01ee04574818ec9595275a0.tar.bz2 | |
add api_key management
Diffstat (limited to 'app/controllers/api_keys_controller.rb')
| -rw-r--r-- | app/controllers/api_keys_controller.rb | 17 | 
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 + | 
