Add destroy def and unit test
This commit is contained in:
parent
da5edf8eab
commit
fc38057172
3 changed files with 25 additions and 1 deletions
|
|
@ -29,6 +29,11 @@ class Api::V1::TasksController < ApplicationController
|
|||
end
|
||||
end
|
||||
|
||||
def destroy
|
||||
@task.destroy
|
||||
head 204
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def task_params
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue