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,
|
||||
)
|
||||
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.users.index import ApiUsersIndexHandler
|
||||
@ -258,7 +258,7 @@ def api_handlers(handler_args):
|
||||
),
|
||||
(
|
||||
r"/api/v2/servers/([0-9]+)/webhook/([0-9]+)/?",
|
||||
ApiServersServerWebhooksWebhookIndexHandler,
|
||||
ApiServersServerWebhooksManagementIndexHandler,
|
||||
handler_args,
|
||||
),
|
||||
(
|
||||
|
@ -32,7 +32,7 @@ webhook_patch_schema = {
|
||||
}
|
||||
|
||||
|
||||
class ApiServersServerWebhooksWebhookIndexHandler(BaseApiHandler):
|
||||
class ApiServersServerWebhooksManagementIndexHandler(BaseApiHandler):
|
||||
def get(self, server_id: str, webhook_id: str):
|
||||
auth_data = self.authenticate_user()
|
||||
if not auth_data:
|
||||
|
Loading…
Reference in New Issue
Block a user