From 64979c4a12c032b3e970ce3ff89d40f02f768714 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Fri, 26 Jul 2024 21:59:00 +0800 Subject: [PATCH] feat: subscriptions import api --- src/hono.ts | 94 ++------------------ src/renderer/src/modules/discover/import.tsx | 2 +- 2 files changed, 7 insertions(+), 89 deletions(-) diff --git a/src/hono.ts b/src/hono.ts index 44c1d801b..76d5cb951 100644 --- a/src/hono.ts +++ b/src/hono.ts @@ -3139,15 +3139,6 @@ declare const _routes: hono_hono_base.HonoBase}`]: { - input: Partial; - output: any; - outputFormat: string; - status: hono_utils_http_status.StatusCode; - }; - }; } & { [x: `/entries/read-histories/${string}`]: { [x: `$${Lowercase}`]: { @@ -3361,85 +3352,12 @@ declare const _routes: hono_hono_base.HonoBase}`]: { + input: Partial; + output: any; + outputFormat: string; + status: hono_utils_http_status.StatusCode; }; }; }, "/">; diff --git a/src/renderer/src/modules/discover/import.tsx b/src/renderer/src/modules/discover/import.tsx index 22e2f1a2b..30bf1f5d4 100644 --- a/src/renderer/src/modules/discover/import.tsx +++ b/src/renderer/src/modules/discover/import.tsx @@ -67,7 +67,7 @@ export function DiscoverImport() { conflictItems: FeedResponseList parsedErrorItems: FeedResponseList } - }>("/import", { + }>("/subscriptions/import", { method: "POST", body: formData, })