mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-12 09:24:15 -04:00
Make URLs consistent/hackable
We do `/things` and `/things/<thing_id>` elsewhere; let’s be consistent here. Means you don’t have to remember the word ‘summary’.
This commit is contained in:
@@ -7,7 +7,7 @@ from app.main import main
|
||||
from app.utils import Spreadsheet, user_has_permissions
|
||||
|
||||
|
||||
@main.route("/services/<uuid:service_id>/returned-letter-summary", methods=["GET"])
|
||||
@main.route("/services/<uuid:service_id>/returned-letters", methods=["GET"])
|
||||
@user_has_permissions('view_activity')
|
||||
def returned_letter_summary(service_id):
|
||||
summary = service_api_client.get_returned_letter_summary(service_id)
|
||||
|
||||
Reference in New Issue
Block a user