def destroy(resources, resource_id):
"""destroy the resource from app.data"""
if resources not in app.resources or resource_id not in app.data[resources]:
abort(404, "Not Found")
del app.data[resources][resource_id]
response.status = 204
return ""
评论列表
文章目录