Skip to content

Commit

Permalink
Align method names with paths in routes.
Browse files Browse the repository at this point in the history
  • Loading branch information
dbernstein committed May 31, 2024
1 parent 6c92efd commit 1b72f98
Showing 1 changed file with 1 addition and 25 deletions.
26 changes: 1 addition & 25 deletions src/palace/manager/api/admin/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,34 +204,10 @@ def edit(identifier_type, identifier):
@returns_problem_detail
@requires_admin
@requires_csrf_token
def suppress(identifier_type, identifier):
def suppression(identifier_type, identifier):
return app.manager.admin_work_controller.suppress(identifier_type, identifier)


@DeprecationWarning
@library_route(
"/admin/works/<identifier_type>/<path:identifier>/suppress", methods=["POST"]
)
@allows_library
@returns_problem_detail
@requires_admin
@requires_csrf_token
def suppress_deprecated(identifier_type, identifier):
return app.manager.admin_work_controller.suppress(identifier_type, identifier)


@DeprecationWarning
@library_route(
"/admin/works/<identifier_type>/<path:identifier>/unsuppress", methods=["POST"]
)
@allows_library
@returns_problem_detail
@requires_admin
@requires_csrf_token
def unsuppress_deprecated(identifier_type, identifier):
return app.manager.admin_work_controller.unsuppress(identifier_type, identifier)


@library_route("/works/<identifier_type>/<path:identifier>/refresh", methods=["POST"])
@has_library
@returns_problem_detail
Expand Down

0 comments on commit 1b72f98

Please sign in to comment.