mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-11-15 07:21:50 +08:00
serve src and assets on debug server
This commit is contained in:
parent
dfbdba50ef
commit
714a0302ec
9
app.py
9
app.py
@ -689,4 +689,13 @@ def make_preview(song_id, song_type, song_ext, preview):
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
from flask import send_from_directory
|
||||
@app.route('/src/<path:path>')
|
||||
def send_src(path):
|
||||
return send_from_directory('public/src', path)
|
||||
|
||||
@app.route('/assets/<path:path>')
|
||||
def send_assets(path):
|
||||
return send_from_directory('public/assets', path)
|
||||
|
||||
app.run(port=34801)
|
||||
|
Loading…
Reference in New Issue
Block a user