From b034485ce812721140dcb990cb761215dd6c5fa5 Mon Sep 17 00:00:00 2001 From: Arksine Date: Thu, 3 Sep 2020 07:23:59 -0400 Subject: [PATCH] authorization: update API registration Signed-off-by: Eric Callahan --- moonraker/authorization.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moonraker/authorization.py b/moonraker/authorization.py index edc694c..1c75222 100644 --- a/moonraker/authorization.py +++ b/moonraker/authorization.py @@ -65,10 +65,10 @@ class Authorization: def register_handlers(self, app): # Register Authorization Endpoints app.register_local_handler( - "/access/api_key", None, ['GET', 'POST'], + "/access/api_key", ['GET', 'POST'], self._handle_apikey_request, http_only=True) app.register_local_handler( - "/access/oneshot_token", None, ['GET'], + "/access/oneshot_token", ['GET'], self._handle_token_request, http_only=True) async def _handle_apikey_request(self, path, method, args):