Allow three arguments on server actions

This commit is contained in:
amcmanu3 2024-05-25 15:12:46 -04:00
parent 97de58f31d
commit 334d4b69c8

View File

@ -273,7 +273,8 @@ def api_handlers(handler_args):
handler_args,
),
(
r"/api/v2/servers/([a-z0-9-]+)/action/([a-z_]+)/([a-z0-9-]+)/?",
# optional third argument when we need a action ID
r"/api/v2/servers/([a-z0-9-]+)/action/([a-z_]+)(?:/([a-z0-9-]+))?/?",
ApiServersServerActionHandler,
handler_args,
),