aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/api_keys_controller.rb
blob: 35a84da87268d778374b518f35b7c8c45fa6b93c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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

  private
  def api_key_params
    params.require(:api_key).permit( :name )
  end  
  
end