mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Add api routes
This commit is contained in:
parent
f1ed96595d
commit
cbd988ee5b
@ -32,6 +32,12 @@ from app.classes.web.routes.api.servers.server.tasks.task.children import (
|
||||
from app.classes.web.routes.api.servers.server.tasks.task.index import (
|
||||
ApiServersServerTasksTaskIndexHandler,
|
||||
)
|
||||
from app.classes.web.routes.api.servers.server.webhooks.index import (
|
||||
ApiServersServerWebhooksIndexHandler,
|
||||
)
|
||||
from app.classes.web.routes.api.servers.server.webhooks.webhook.index import (
|
||||
ApiServersServerWebhooksWebhookIndexHandler,
|
||||
)
|
||||
from app.classes.web.routes.api.servers.server.users import ApiServersServerUsersHandler
|
||||
from app.classes.web.routes.api.users.index import ApiUsersIndexHandler
|
||||
from app.classes.web.routes.api.users.user.index import ApiUsersUserIndexHandler
|
||||
@ -132,6 +138,16 @@ def api_handlers(handler_args):
|
||||
ApiServersServerStatsHandler,
|
||||
handler_args,
|
||||
),
|
||||
(
|
||||
r"/api/v2/servers/([0-9]+)/webhook/([0-9]+)/?",
|
||||
ApiServersServerWebhooksWebhookIndexHandler,
|
||||
handler_args,
|
||||
),
|
||||
(
|
||||
r"/api/v2/servers/([0-9]+)/webhook/?",
|
||||
ApiServersServerWebhooksIndexHandler,
|
||||
handler_args,
|
||||
),
|
||||
(
|
||||
r"/api/v2/servers/([0-9]+)/action/([a-z_]+)/?",
|
||||
ApiServersServerActionHandler,
|
||||
|
Loading…
Reference in New Issue
Block a user