authorization: update API registration

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Arksine 2020-09-03 07:23:59 -04:00
parent 76ea4d25a4
commit b034485ce8
1 changed files with 2 additions and 2 deletions

View File

@ -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):