feat: use blueprint static path
This commit is contained in:
parent
c104f93960
commit
5f7c3c0fab
1 changed files with 1 additions and 1 deletions
2
app.py
2
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__':
|
||||
|
|
Loading…
Reference in a new issue