diff --git a/app/controllers/annotations_controller.rb b/app/controllers/annotations_controller.rb index 3332fc204..e8267d593 100644 --- a/app/controllers/annotations_controller.rb +++ b/app/controllers/annotations_controller.rb @@ -16,7 +16,14 @@ class AnnotationsController < ApplicationController end end + def destroy + @annotation = Annotation.find(params[:id]) + @annotation.destroy + render json: { status: :ok } + end + private + def annotation_params params .require(:annotation)