Merge pull request #3460 from yingshaoxo/patch-1

static_folder and static_url_path can be different
This commit is contained in:
David Lord 2020-02-10 18:40:25 -08:00 committed by GitHub
commit 71b7468634
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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")