Fixed linting errors in backend
continuous-integration/drone the build was successful
Details
continuous-integration/drone the build was successful
Details
parent
0d693847b1
commit
dc00140b65
|
@ -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")
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in New Issue