|
7 | 7 | from typing import AsyncGenerator |
8 | 8 |
|
9 | 9 | from aiohttp import web |
| 10 | +from cactus_schema.notification import uri |
10 | 11 |
|
11 | | -import cactus_client_notifications.schema as schema |
12 | 12 | import cactus_client_notifications.server.shared as shared |
13 | 13 | from cactus_client_notifications.server import handler |
14 | 14 | from cactus_client_notifications.server.endpoint_store import EndpointStore |
@@ -91,13 +91,13 @@ def create_app() -> web.Application: |
91 | 91 | # Add routes for Test Runner |
92 | 92 | mount = server_settings.mount_point |
93 | 93 | app.router.add_route( |
94 | | - "POST", handler.path_join(mount, schema.URI_MANAGE_ENDPOINT_LIST), handler.post_manage_endpoint_list |
| 94 | + "POST", handler.path_join(mount, uri.URI_MANAGE_ENDPOINT_LIST), handler.post_manage_endpoint_list |
95 | 95 | ) |
96 | | - app.router.add_route("GET", handler.path_join(mount, schema.URI_MANAGE_ENDPOINT), handler.get_manage_endpoint) |
97 | | - app.router.add_route("PUT", handler.path_join(mount, schema.URI_MANAGE_ENDPOINT), handler.put_manage_endpoint) |
98 | | - app.router.add_route("DELETE", handler.path_join(mount, schema.URI_MANAGE_ENDPOINT), handler.delete_manage_endpoint) |
99 | | - app.router.add_route("*", handler.path_join(mount, schema.URI_ENDPOINT), handler.webhook_endpoint) |
100 | | - app.router.add_route("GET", handler.path_join(mount, schema.URI_MANAGE_SERVER), handler.get_manage_server) |
| 96 | + app.router.add_route("GET", handler.path_join(mount, uri.URI_MANAGE_ENDPOINT), handler.get_manage_endpoint) |
| 97 | + app.router.add_route("PUT", handler.path_join(mount, uri.URI_MANAGE_ENDPOINT), handler.put_manage_endpoint) |
| 98 | + app.router.add_route("DELETE", handler.path_join(mount, uri.URI_MANAGE_ENDPOINT), handler.delete_manage_endpoint) |
| 99 | + app.router.add_route("*", handler.path_join(mount, uri.URI_ENDPOINT), handler.webhook_endpoint) |
| 100 | + app.router.add_route("GET", handler.path_join(mount, uri.URI_MANAGE_SERVER), handler.get_manage_server) |
101 | 101 |
|
102 | 102 | # Start the periodic task |
103 | 103 | app.cleanup_ctx.append(setup_periodic_task) |
|
0 commit comments