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 c96be4c2f0
commit 089a379b97

View file

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