From a859d3b7e10f16f8e7de0322b8b3c8a19c319bfd Mon Sep 17 00:00:00 2001 From: Ayo Ayco Date: Sun, 19 Jan 2025 09:45:12 +0100 Subject: [PATCH] feat: use blueprint static path --- app.py | 2 +- threads.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 10bff1a..3acdb88 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='/', static_folder='static', static_url_path='/threads/static') +app.register_blueprint(threads, url_prefix='/') app.config.from_file("config.json", load=json.load) if __name__ == '__main__': diff --git a/threads.py b/threads.py index 7ccd96e..5e005b9 100755 --- a/threads.py +++ b/threads.py @@ -6,7 +6,7 @@ import asyncio import aiohttp from . import mastodon, utils -threads = Blueprint('threads', __name__, template_folder='templates') +threads = Blueprint('threads', __name__, template_folder='templates', static_folder='static', static_url_path='/threads/static') # TODO: move following to an app config or sqlite ######### thread_ids = [