mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Refactor management classname
This commit is contained in:
parent
f9218ae157
commit
628c234400
@ -54,7 +54,7 @@ from app.classes.web.routes.api.servers.server.webhooks.index import (
|
|||||||
ApiServersServerWebhooksIndexHandler,
|
ApiServersServerWebhooksIndexHandler,
|
||||||
)
|
)
|
||||||
from app.classes.web.routes.api.servers.server.webhooks.webhook.index import (
|
from app.classes.web.routes.api.servers.server.webhooks.webhook.index import (
|
||||||
ApiServersServerWebhooksWebhookIndexHandler,
|
ApiServersServerWebhooksManagementIndexHandler,
|
||||||
)
|
)
|
||||||
from app.classes.web.routes.api.servers.server.users import ApiServersServerUsersHandler
|
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.index import ApiUsersIndexHandler
|
||||||
@ -258,7 +258,7 @@ def api_handlers(handler_args):
|
|||||||
),
|
),
|
||||||
(
|
(
|
||||||
r"/api/v2/servers/([0-9]+)/webhook/([0-9]+)/?",
|
r"/api/v2/servers/([0-9]+)/webhook/([0-9]+)/?",
|
||||||
ApiServersServerWebhooksWebhookIndexHandler,
|
ApiServersServerWebhooksManagementIndexHandler,
|
||||||
handler_args,
|
handler_args,
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
|
@ -32,7 +32,7 @@ webhook_patch_schema = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class ApiServersServerWebhooksWebhookIndexHandler(BaseApiHandler):
|
class ApiServersServerWebhooksManagementIndexHandler(BaseApiHandler):
|
||||||
def get(self, server_id: str, webhook_id: str):
|
def get(self, server_id: str, webhook_id: str):
|
||||||
auth_data = self.authenticate_user()
|
auth_data = self.authenticate_user()
|
||||||
if not auth_data:
|
if not auth_data:
|
||||||
|
Loading…
Reference in New Issue
Block a user