remove useless code

pull/22878/head
leslie2046 12 months ago
parent dc05140b87
commit 7bf9ff0754

@ -271,18 +271,6 @@ class AnnotationHitHistoryListApi(Resource):
}
return response
class AnnotationClearAllApi(Resource):
@setup_required
@login_required
@account_initialization_required
def post(self, app_id):
if not current_user.is_editor:
raise Forbidden()
app_id = str(app_id)
AppAnnotationService.clear_all_annotations(app_id)
return {"result": "success"}, 200
api.add_resource(AnnotationReplyActionApi, "/apps/<uuid:app_id>/annotation-reply/<string:action>")
api.add_resource(

Loading…
Cancel
Save