Add "GET" to methods

This commit is contained in:
Jack Eilles 2024-01-19 10:00:32 +00:00
parent 6828e5f71d
commit 658cc5cd5d

View file

@ -163,7 +163,7 @@ def getInfo(id):
return worker.idInfo(id)
@csrf.exempt
@app.route('/<id>/delete', methods=["POST"])
@app.route('/<id>/delete', methods=["GET", "POST"])
def delete(id):
if Config.files.find_one({"id": id}) is not None: