14 lines
336 B
Python
14 lines
336 B
Python
"""Main entrypoint for the program."""
|
|
from quart import Quart
|
|
|
|
app = Quart("jos", static_folder="web/dist", static_url_path="/")
|
|
|
|
|
|
@app.route('/', methods=['GET'], defaults={'path': ''})
|
|
@app.route('/<path:path>', methods=['GET'])
|
|
async def frontend(path):
|
|
return await app.send_static_file("index.html")
|
|
|
|
|
|
app.run(host="0.0.0.0")
|