Fixed linting errors in backend
continuous-integration/drone the build was successful Details

pull/20/head
Jef Roosens 2021-05-18 22:09:16 +02:00
parent 0d693847b1
commit dc00140b65
Signed by: Jef Roosens
GPG Key ID: 955C0660072F691F
1 changed files with 3 additions and 2 deletions

View File

@ -4,9 +4,10 @@ from quart import Quart
app = Quart("jos", static_folder="web/dist", static_url_path="/") app = Quart("jos", static_folder="web/dist", static_url_path="/")
@app.route('/', methods=['GET'], defaults={'path': ''}) @app.route("/", methods=["GET"], defaults={"path": ""})
@app.route('/<path:path>', methods=['GET']) @app.route("/<path:path>", methods=["GET"])
async def frontend(path): async def frontend(path):
"""Serves the Vue.js frontend."""
return await app.send_static_file("index.html") return await app.send_static_file("index.html")