Proper Devop Setup #20

Merged
Jef Roosens merged 13 commits from 8-devop-setup into develop 2021-05-18 22:15:19 +02:00
Showing only changes of commit dc00140b65 - Show all commits

View file

@ -4,9 +4,10 @@ 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'])
@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")