Upload files to "/"
This commit is contained in:
16
app.py
Normal file
16
app.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from flask import Flask
|
||||
from flask_cors import CORS
|
||||
from db import init_db
|
||||
from routes.api import api
|
||||
from routes.dashboard import dashboard
|
||||
|
||||
app = Flask(__name__)
|
||||
CORS(app) # Allow cross-origin requests from the Tampermonkey script
|
||||
|
||||
app.register_blueprint(api)
|
||||
app.register_blueprint(dashboard)
|
||||
|
||||
if __name__ == '__main__':
|
||||
init_db()
|
||||
print("✅ Grepolis Remote — DB initialised")
|
||||
app.run(host='0.0.0.0', port=5050, debug=True)
|
||||
Reference in New Issue
Block a user