feat: use blueprint static path
This commit is contained in:
parent
5f7c3c0fab
commit
a859d3b7e1
2 changed files with 2 additions and 2 deletions
2
app.py
2
app.py
|
@ -5,7 +5,7 @@ from .cache import cache
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
cache.init_app(app, config={'CACHE_TYPE': 'SimpleCache'})
|
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)
|
app.config.from_file("config.json", load=json.load)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
|
@ -6,7 +6,7 @@ import asyncio
|
||||||
import aiohttp
|
import aiohttp
|
||||||
from . import mastodon, utils
|
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 #########
|
# TODO: move following to an app config or sqlite #########
|
||||||
thread_ids = [
|
thread_ids = [
|
||||||
|
|
Loading…
Reference in a new issue