From 79667a9644b78451400acb6a6bbf07b6ca61e6e0 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Tue, 22 Oct 2024 02:26:20 +0800 Subject: [PATCH] fix: fix a bug which will match incorrect path #115 --- src/server/trpc/routers/feed/index.ts | 2 +- src/server/trpc/routers/monitor.ts | 4 ++-- src/server/trpc/routers/survey.ts | 2 +- src/server/trpc/routers/workspace.ts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/server/trpc/routers/feed/index.ts b/src/server/trpc/routers/feed/index.ts index 1f55cec..0f79088 100644 --- a/src/server/trpc/routers/feed/index.ts +++ b/src/server/trpc/routers/feed/index.ts @@ -272,7 +272,7 @@ export const feedRouter = router({ .meta( buildFeedOpenapi({ method: 'DELETE', - path: '/{channelId}', + path: '/{channelId}/del', }) ) .input( diff --git a/src/server/trpc/routers/monitor.ts b/src/server/trpc/routers/monitor.ts index 75f68d1..bdcde8c 100644 --- a/src/server/trpc/routers/monitor.ts +++ b/src/server/trpc/routers/monitor.ts @@ -68,7 +68,7 @@ export const monitorRouter = router({ .meta( buildMonitorOpenapi({ method: 'GET', - path: '/{monitorId}', + path: '/{monitorId}/get', }) ) .input( @@ -169,7 +169,7 @@ export const monitorRouter = router({ .meta( buildMonitorOpenapi({ method: 'DELETE', - path: '/{monitorId}', + path: '/{monitorId}/del', }) ) .input( diff --git a/src/server/trpc/routers/survey.ts b/src/server/trpc/routers/survey.ts index 185a535..9cafbc7 100644 --- a/src/server/trpc/routers/survey.ts +++ b/src/server/trpc/routers/survey.ts @@ -51,7 +51,7 @@ export const surveyRouter = router({ .meta( buildSurveyOpenapi({ method: 'GET', - path: '/{surveyId}', + path: '/{surveyId}/get', }) ) .input( diff --git a/src/server/trpc/routers/workspace.ts b/src/server/trpc/routers/workspace.ts index aa3db44..0bb40e5 100644 --- a/src/server/trpc/routers/workspace.ts +++ b/src/server/trpc/routers/workspace.ts @@ -160,7 +160,7 @@ export const workspaceRouter = router({ .meta( buildWorkspaceOpenapi({ method: 'DELETE', - path: '/{workspaceId}', + path: '/{workspaceId}/del', }) ) .input(