Se pueden eliminar anotaciones
This commit is contained in:
@@ -16,7 +16,14 @@ class AnnotationsController < ApplicationController
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def destroy
|
||||||
|
@annotation = Annotation.find(params[:id])
|
||||||
|
@annotation.destroy
|
||||||
|
render json: { status: :ok }
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def annotation_params
|
def annotation_params
|
||||||
params
|
params
|
||||||
.require(:annotation)
|
.require(:annotation)
|
||||||
|
|||||||
Reference in New Issue
Block a user