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 = [