Add destroy def and unit test

This commit is contained in:
Lou 2021-05-10 22:06:12 +02:00
commit fc38057172
3 changed files with 25 additions and 1 deletions

View file

@ -29,6 +29,11 @@ class Api::V1::TasksController < ApplicationController
end
end
def destroy
@task.destroy
head 204
end
private
def task_params