diff --git a/src/palace/manager/api/admin/routes.py b/src/palace/manager/api/admin/routes.py index cde17dc107..856a60d768 100644 --- a/src/palace/manager/api/admin/routes.py +++ b/src/palace/manager/api/admin/routes.py @@ -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///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///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///refresh", methods=["POST"]) @has_library @returns_problem_detail