This repository has been archived on 2021-12-24. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
jos/app/__main__.py
Jef Roosens dc00140b65
All checks were successful
continuous-integration/drone the build was successful
Fixed linting errors in backend
2021-05-18 22:09:16 +02:00

14 lines
374 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):
"""Serves the Vue.js frontend."""
return await app.send_static_file("index.html")
app.run(host="0.0.0.0")