mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 09:26:08 -05:00
Added user_id as a query param for get_services.
Need to add this query param for the services page on the admin app. Do not add the query param to path in the token.
This commit is contained in:
@@ -65,8 +65,9 @@ def update_service(service_id):
|
||||
@service.route('/<int:service_id>', methods=['GET'])
|
||||
@service.route('', methods=['GET'])
|
||||
def get_service(service_id=None):
|
||||
user_id = request.args.get('user_id', None)
|
||||
try:
|
||||
services = get_model_services(service_id=service_id)
|
||||
services = get_model_services(service_id=service_id, user_id=user_id)
|
||||
except DataError:
|
||||
return jsonify(result="error", message="Invalid service id"), 400
|
||||
except NoResultFound:
|
||||
|
||||
Reference in New Issue
Block a user