First work session with OpenCode and OpenRouter
This commit is contained in:
1 parent
91a973dde2
commit
a3f55a8c35
17 files changed
+1035
-123
No files matched your search
+11
-1
@@ -1,7 +1,8 @@
|
||||
from flask import Flask
|
||||
from flask import Flask, g
|
||||
from blueprints.home.home import home_bp
|
||||
from blueprints.upload_photo.upload_photo import upload_photo_bp
|
||||
from blueprints.configure_stream.configure_stream import configure_stream_bp
|
||||
from blueprints.youtube_download.youtube_download import youtube_download_bp
|
||||
import os
|
||||
import json
|
||||
|
||||
@@ -17,6 +18,15 @@ app.config["config"] = config_json
|
||||
app.register_blueprint(home_bp)
|
||||
app.register_blueprint(upload_photo_bp)
|
||||
app.register_blueprint(configure_stream_bp)
|
||||
app.register_blueprint(youtube_download_bp)
|
||||
|
||||
|
||||
@app.teardown_appcontext
|
||||
def close_database(error):
|
||||
db = g.pop('_database', None)
|
||||
if db is not None:
|
||||
db.close()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(debug=True, host="0.0.0.0", port=2025)
|
||||
Reference in new issue
Block a user