This commit is contained in:
2025-11-16 18:01:30 +01:00
commit 858003cb0b
26 changed files with 4712 additions and 0 deletions

23
app.py Normal file
View File

@@ -0,0 +1,23 @@
"""
Main Flask application entry point.
"""
import os
from flask import Flask, send_from_directory
from routes.api import api_bp
# Get the directory where this script is located
basedir = os.path.abspath(os.path.dirname(__file__))
app = Flask(__name__, static_folder='static', static_url_path='/static')
# Register API blueprint (FastAPI-compatible route structure)
app.register_blueprint(api_bp)
# Serve index.html at root
@app.route('/')
def index():
return send_from_directory(os.path.join(basedir, 'static'), 'index.html')
if __name__ == '__main__':
app.run(debug=True, host='0.0.0.0', port=5000)