mirror of https://github.com/pallets/flask.git
pass static_url_path along with static_folder
This commit is contained in:
parent
c12d9f8b49
commit
7e068145df
|
@ -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")
|
||||||
|
|
Loading…
Reference in New Issue