Patched in params support for "get."
This commit is contained in:
parent
a8b07eb115
commit
b8cd972090
2 changed files with 53 additions and 2 deletions
|
|
@ -10,7 +10,7 @@ def generate_crud_blueprint(model, service):
|
|||
|
||||
@bp.get('/<int:id>')
|
||||
def get_item(id):
|
||||
item = service.get(id)
|
||||
item = service.get(id, request.args)
|
||||
return jsonify(item.as_dict())
|
||||
|
||||
@bp.post('/')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue