From 5cec2dc986c59a7b6d1c1592835633fe559fb258 Mon Sep 17 00:00:00 2001 From: Johnson Liang Date: Mon, 25 Nov 2024 13:17:45 +0800 Subject: [PATCH] fix(adm): conflict merge error --- src/adm/index.ts | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/src/adm/index.ts b/src/adm/index.ts index 0ed517c4..1e3026a4 100644 --- a/src/adm/index.ts +++ b/src/adm/index.ts @@ -31,21 +31,23 @@ const router = createRouter({ ...(shouldAuth ? [useAuth()] : []), // block non-cloudflare requests only in production useAuditLog(), ], -}).route({ - method: 'POST', - path: '/ping', - description: - 'Please use this harmless endpoint to test if your connection with API is wired up correctly.', - schemas: { - request: { - json: Type.Object( - { - echo: Type.String({ - description: 'Text that will be included in response message', - }), - }, - { additionalProperties: false } - ), +}) + .route({ + method: 'POST', + path: '/ping', + description: + 'Please use this harmless endpoint to test if your connection with API is wired up correctly.', + schemas: { + request: { + json: Type.Object( + { + echo: Type.String({ + description: 'Text that will be included in response message', + }), + }, + { additionalProperties: false } + ), + }, }, handler: async (request) => Response.json(pingHandler(await request.json())),