feat: use blueprint static path

This commit is contained in:
Ayo Ayco 2025-01-19 09:23:04 +01:00
parent c104f93960
commit 5f7c3c0fab

2
app.py
View file

@ -5,7 +5,7 @@ from .cache import cache
app = Flask(__name__)
cache.init_app(app, config={'CACHE_TYPE': 'SimpleCache'})
app.register_blueprint(threads, url_prefix='/')
app.register_blueprint(threads, url_prefix='/', static_folder='static', static_url_path='/threads/static')
app.config.from_file("config.json", load=json.load)
if __name__ == '__main__':