mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 15:46:07 -05:00
Remove whitelist from URLs
The admin app is now[1] using the newer, `…/guest-list` URLs, so we can remove the older, deprecated, `…/whitelist` ones. *** 1. https://github.com/alphagov/notifications-admin/pull/3536
This commit is contained in:
@@ -560,7 +560,6 @@ def get_detailed_services(start_date, end_date, only_active=False, include_from_
|
||||
return results
|
||||
|
||||
|
||||
@service_blueprint.route('/<uuid:service_id>/whitelist', methods=['GET'])
|
||||
@service_blueprint.route('/<uuid:service_id>/guest-list', methods=['GET'])
|
||||
def get_guest_list(service_id):
|
||||
from app.models import (EMAIL_TYPE, MOBILE_TYPE)
|
||||
@@ -578,7 +577,6 @@ def get_guest_list(service_id):
|
||||
)
|
||||
|
||||
|
||||
@service_blueprint.route('/<uuid:service_id>/whitelist', methods=['PUT'])
|
||||
@service_blueprint.route('/<uuid:service_id>/guest-list', methods=['PUT'])
|
||||
def update_guest_list(service_id):
|
||||
# doesn't commit so if there are any errors, we preserve old values in db
|
||||
|
||||
Reference in New Issue
Block a user