pass static_url_path along with static_folder

This commit is contained in:
yingshaoxo 2020-01-03 15:06:24 +08:00 committed by David Lord
parent c12d9f8b49
commit 7e068145df
No known key found for this signature in database
GPG Key ID: 7A1C87E3F5BC42A8
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ The following example demonstrates how to serve an SPA along with an API::
from flask import Flask, jsonify from flask import Flask, jsonify
app = Flask(__name__, static_folder='app') app = Flask(__name__, static_folder='app', static_url_path="/app")
@app.route("/heartbeat") @app.route("/heartbeat")