Skip to content
Myr

pass static_url_path along with static_folder

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by yingshaoxo · committed by David Lord · parent c12d9f8 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/patterns/singlepageapplications.rst+1 added-1 removed
8 unmodified lines
9The following example demonstrates how to serve an SPA along with an API::1011 from flask import Flask, jsonify1213 app = Flask(__name__, static_folder='app')13 app = Flask(__name__, static_folder='app', static_url_path="/app")141516 @app.route("/heartbeat")17 def heartbeat():
7 unmodified lines