diff --git a/app/controllers/api/v1/party_controller.rb b/app/controllers/api/v1/parties_controller.rb similarity index 90% rename from app/controllers/api/v1/party_controller.rb rename to app/controllers/api/v1/parties_controller.rb index 00f02ca..555bd5f 100644 --- a/app/controllers/api/v1/party_controller.rb +++ b/app/controllers/api/v1/parties_controller.rb @@ -1,4 +1,4 @@ -class Api::V1::PartyController < ActionController::API +class Api::V1::PartiesController < ActionController::API before_action :set, except: ['create'] def index diff --git a/app/views/api/v1/grid_weapons/show.json.rabl b/app/views/api/v1/grid_weapons/show.json.rabl new file mode 100644 index 0000000..55b92ab --- /dev/null +++ b/app/views/api/v1/grid_weapons/show.json.rabl @@ -0,0 +1,3 @@ +object @grid_weapon + +extends 'api/v1/grid_weapons/base' \ No newline at end of file diff --git a/config/routes.rb b/config/routes.rb index dae5e86..cbdf250 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -5,7 +5,7 @@ Rails.application.routes.draw do namespace :api, defaults: { format: :json } do namespace :v1 do - resources :party, only: [:index, :create, :show, :destroy] + resources :parties, only: [:index, :create, :show, :destroy] resources :users, only: [:create, :show] resources :search, only: [:index]