This commit is contained in:
Aevann1 2021-09-08 13:05:31 +02:00
parent f0f8624fff
commit 35e40d78c0
6 changed files with 36 additions and 39 deletions

View file

@ -31,7 +31,7 @@ def api_flag_post(pid, v):
g.db.add(flag)
return "", 204
return {"message": "Post flagged!"}
@app.post("/flag/comment/<cid>")
@ -59,7 +59,7 @@ def api_flag_comment(cid, v):
g.db.add(flag)
return "", 204
return {"message": "Comment flagged!"}
@app.post('/del_report/<report_fn>')