mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-16 08:24:28 -05:00
Change URL of notification page
This page is going to be used to show all notifications now, not just ones sent as one-offs.
This commit is contained in:
@@ -39,7 +39,7 @@ def get_status_arg(filter_args):
|
||||
return REQUESTED_STATUSES
|
||||
|
||||
|
||||
@main.route("/services/<service_id>/one-off-notification/<notification_id>")
|
||||
@main.route("/services/<service_id>/notification/<notification_id>")
|
||||
@login_required
|
||||
@user_has_permissions('view_activity', admin_override=True)
|
||||
def view_notification(service_id, notification_id):
|
||||
@@ -72,7 +72,7 @@ def view_notification(service_id, notification_id):
|
||||
)
|
||||
|
||||
|
||||
@main.route("/services/<service_id>/one-off-notification/<notification_id>.json")
|
||||
@main.route("/services/<service_id>/notification/<notification_id>.json")
|
||||
@user_has_permissions('view_activity', admin_override=True)
|
||||
def view_notification_updates(service_id, notification_id):
|
||||
return jsonify(**get_single_notification_partials(
|
||||
|
||||
Reference in New Issue
Block a user