Skip to content

Commit ed99a54

Browse files
telackeyalexellis
authored andcommitted
Implement proposal 716, pass full path to function
Forgot to add the 'path' as a param to the main_route itself. Signed-off-by: Thomas E Lackey <[email protected]>
1 parent 1ac713d commit ed99a54

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

template/python27-flask/index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
@app.route("/", defaults={"path": ""}, methods=["POST", "GET"])
1010
@app.route("/<path:path>", methods=["POST", "GET"])
11-
def main_route():
11+
def main_route(path):
1212
ret = handler.handle(request.get_data())
1313
return ret
1414

template/python3-flask-armhf/index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
@app.route("/", defaults={"path": ""}, methods=["POST", "GET"])
1212
@app.route("/<path:path>", methods=["POST", "GET"])
13-
def main_route():
13+
def main_route(path):
1414
ret = handler.handle(request.get_data())
1515
return ret
1616

template/python3-flask/index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
@app.route("/", defaults={"path": ""}, methods=["POST", "GET"])
1212
@app.route("/<path:path>", methods=["POST", "GET"])
13-
def main_route():
13+
def main_route(path):
1414
ret = handler.handle(request.get_data())
1515
return ret
1616

0 commit comments

Comments
 (0)