Files
Forge-Engine/routes/uploads/uploaded_file.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

13 lines
265 B
Python

import os
from flask import send_from_directory
import db
from core.flask_app import app
@app.route("/game/<slug>/uploads/<path:filename>")
def uploaded_file(slug, filename):
return send_from_directory(os.path.join(db.game_dir(slug), "uploads"), filename)