Fix routing for the user permissions handler

This commit is contained in:
luukas 2022-05-25 00:58:10 +03:00
parent 57ef5e27dd
commit cbc73b7e92
No known key found for this signature in database
GPG Key ID: CC4915E8D71FC044

View File

@ -62,8 +62,8 @@ def api_handlers(handler_args):
handler_args, handler_args,
), ),
( (
r"/api/v2/users/([0-9]+)/pfp/?", r"/api/v2/users/([0-9]+)/permissions/?",
ApiUsersUserPfpHandler, ApiUsersUserPermissionsHandler,
handler_args, handler_args,
), ),
( (
@ -71,6 +71,11 @@ def api_handlers(handler_args):
ApiUsersUserPermissionsHandler, ApiUsersUserPermissionsHandler,
handler_args, handler_args,
), ),
(
r"/api/v2/users/([0-9]+)/pfp/?",
ApiUsersUserPfpHandler,
handler_args,
),
( (
r"/api/v2/users/(@me)/pfp/?", r"/api/v2/users/(@me)/pfp/?",
ApiUsersUserPfpHandler, ApiUsersUserPfpHandler,