From ca4e25827f2912f37792f2b9bb3b06323b48a450 Mon Sep 17 00:00:00 2001 From: imbytecat Date: Thu, 2 Apr 2026 00:48:41 +0800 Subject: [PATCH] =?UTF-8?q?chore(api):=20=E5=88=A0=E9=99=A4=E6=9C=AA?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E7=9A=84=E5=81=A5=E5=BA=B7=E6=A3=80=E6=9F=A5?= =?UTF-8?q?=E7=AB=AF=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes/api/health.ts | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 src/routes/api/health.ts diff --git a/src/routes/api/health.ts b/src/routes/api/health.ts deleted file mode 100644 index fcc5e7d..0000000 --- a/src/routes/api/health.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { createFileRoute } from '@tanstack/react-router' -import { name, version } from '@/../package.json' - -const createHealthResponse = (): Response => - Response.json( - { - status: 'ok', - service: name, - version, - timestamp: new Date().toISOString(), - }, - { - status: 200, - headers: { - 'cache-control': 'no-store', - }, - }, - ) - -export const Route = createFileRoute('/api/health')({ - server: { - handlers: { - GET: async () => createHealthResponse(), - HEAD: async () => new Response(null, { status: 200 }), - }, - }, -})