From 5f7c3c0fab310870aba8afc40aa3c6330bfeb483 Mon Sep 17 00:00:00 2001 From: Ayo Ayco Date: Sun, 19 Jan 2025 09:23:04 +0100 Subject: [PATCH] feat: use blueprint static path --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 3acdb88..10bff1a 100755 --- a/app.py +++ b/app.py @@ -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__':