Deliver index.html per default
This commit is contained in:
parent
395d77b71c
commit
d86ac40602
4
app.py
4
app.py
@ -2,6 +2,10 @@ from flask import Flask, send_from_directory
|
|||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
|
||||||
|
@app.route("/")
|
||||||
|
def svelte_index():
|
||||||
|
return send_from_directory("webapp/build", "index.html")
|
||||||
|
|
||||||
@app.route("/<path:path>")
|
@app.route("/<path:path>")
|
||||||
def svelte_client(path):
|
def svelte_client(path):
|
||||||
return send_from_directory("webapp/build/", path)
|
return send_from_directory("webapp/build/", path)
|
||||||
Loading…
x
Reference in New Issue
Block a user