Files
Forge-Engine/routes/games/game_delete.py
T
williamandwilliam 3f4ebc4527
Build and deploy / build-and-push (push) Successful in 17s
Build and deploy / deploy (push) Successful in 10s
first commit
2026-08-21 16:23:49 +02:00

12 lines
219 B
Python

from flask import redirect, url_for
import db
from core.flask_app import app
@app.route("/game/<slug>/delete", methods=["POST"])
def game_delete(slug):
db.delete_game(slug)
return redirect(url_for("index"))