Skip to content

Commit 9c3deee

Browse files
authored
Fix argument in register_api() in docs/view.rst (pallets#4818)
1 parent 2c78771 commit 9c3deee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/views.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ provide get (list) and post (create) methods.
297297
db.session.commit()
298298
return jsonify(item.to_json())
299299
300-
def register_api(app, model, url):
300+
def register_api(app, model, name):
301301
item = ItemAPI.as_view(f"{name}-item", model)
302302
group = GroupAPI.as_view(f"{name}-group", model)
303303
app.add_url_rule(f"/{name}/<int:id>", view_func=item)

0 commit comments

Comments
 (0)