From cbc73b7e92e2d317fa58be58a387040954a69f1b Mon Sep 17 00:00:00 2001 From: luukas Date: Wed, 25 May 2022 00:58:10 +0300 Subject: [PATCH] Fix routing for the user permissions handler --- app/classes/web/routes/api/api_handlers.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/classes/web/routes/api/api_handlers.py b/app/classes/web/routes/api/api_handlers.py index ce991cae..6c032811 100644 --- a/app/classes/web/routes/api/api_handlers.py +++ b/app/classes/web/routes/api/api_handlers.py @@ -62,8 +62,8 @@ def api_handlers(handler_args): handler_args, ), ( - r"/api/v2/users/([0-9]+)/pfp/?", - ApiUsersUserPfpHandler, + r"/api/v2/users/([0-9]+)/permissions/?", + ApiUsersUserPermissionsHandler, handler_args, ), ( @@ -71,6 +71,11 @@ def api_handlers(handler_args): ApiUsersUserPermissionsHandler, handler_args, ), + ( + r"/api/v2/users/([0-9]+)/pfp/?", + ApiUsersUserPfpHandler, + handler_args, + ), ( r"/api/v2/users/(@me)/pfp/?", ApiUsersUserPfpHandler,