From dc39eb53738799ae03c6de918f48bc0852829cf7 Mon Sep 17 00:00:00 2001 From: Jonathan Green Date: Mon, 18 Sep 2023 15:28:45 -0300 Subject: [PATCH] Accept POST requests to the /patrons/me/token endpoint. --- api/routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/routes.py b/api/routes.py index ed07b6c1c7..3a6a172c28 100644 --- a/api/routes.py +++ b/api/routes.py @@ -395,7 +395,7 @@ def delete_patron_devices(): return app.manager.patron_devices.delete_patron_device() -@library_dir_route("/patrons/me/token", methods=["GET"]) +@library_dir_route("/patrons/me/token", methods=["POST"]) @api_spec.validate(resp=SpecResponse(HTTP_200=PatronAuthAccessToken), tags=["patron"]) @has_library @requires_auth