fix: dashboard route redirect for relative jv_data.json fetch
This commit is contained in:
9
app.py
9
app.py
@@ -24,12 +24,13 @@ def index():
|
||||
return render_template("index.html")
|
||||
|
||||
@app.route("/dashboard")
|
||||
@app.route("/dashboard/")
|
||||
def dashboard():
|
||||
return send_from_directory("static/dashboard", "index.html")
|
||||
return redirect("/dashboard/index.html")
|
||||
|
||||
@app.route("/dashboard/jv_data.json")
|
||||
def dashboard_data():
|
||||
return send_from_directory("static/dashboard", "jv_data.json")
|
||||
@app.route("/dashboard/<path:filename>")
|
||||
def dashboard_files(filename):
|
||||
return send_from_directory("static/dashboard", filename)
|
||||
|
||||
@app.route("/proposal")
|
||||
def proposal():
|
||||
|
||||
Reference in New Issue
Block a user