15 lines
385 B
Python
15 lines
385 B
Python
from quart import Quart, send_from_directory
|
|
|
|
app = Quart(__name__, static_folder='../frontend/build/web')
|
|
|
|
@app.route('/')
|
|
async def hello():
|
|
return await send_from_directory(app.static_folder, 'index.html')
|
|
|
|
@app.route('/<path:path>')
|
|
async def serve_static(path):
|
|
return await send_from_directory(app.static_folder, path)
|
|
|
|
if __name__ == "__main__":
|
|
app.run(debug=True)
|