Refactor management classname

This commit is contained in:
Andrew 2023-09-27 17:35:44 -04:00
parent f9218ae157
commit 628c234400
2 changed files with 3 additions and 3 deletions

View File

@ -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,
),
(

View File

@ -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: