Add destroy implementation and json template
This commit is contained in:
parent
00be912c31
commit
18049385ce
2 changed files with 6 additions and 0 deletions
|
|
@ -31,6 +31,7 @@ class Api::V1::PartiesController < Api::V1::ApiController
|
|||
end
|
||||
|
||||
def destroy
|
||||
render :destroyed, status: :ok if @party.destroy
|
||||
end
|
||||
|
||||
def weapons
|
||||
|
|
|
|||
5
app/views/api/v1/parties/destroyed.json.rabl
Normal file
5
app/views/api/v1/parties/destroyed.json.rabl
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
object false
|
||||
|
||||
node :destroyed do
|
||||
true
|
||||
end
|
||||
Loading…
Reference in a new issue