From 2771fcb9d4e85e33422bba971848dfe804dc686a Mon Sep 17 00:00:00 2001 From: ZtRXR Date: Mon, 28 Aug 2023 23:19:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=86=E5=A4=87=E5=BC=80=E5=A7=8B=E5=86=99?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/api/data/all.ts | 1 + server/api/data/data-source.ts | 15 --------------- 2 files changed, 1 insertion(+), 15 deletions(-) delete mode 100644 server/api/data/data-source.ts diff --git a/server/api/data/all.ts b/server/api/data/all.ts index 45710ff..dba95ef 100644 --- a/server/api/data/all.ts +++ b/server/api/data/all.ts @@ -1,4 +1,5 @@ import "reflect-metadata" + export default defineEventHandler((envent)=>{ // @ts-ignore const webName:string|undefined = envent.context.params.WebName diff --git a/server/api/data/data-source.ts b/server/api/data/data-source.ts deleted file mode 100644 index 8c4f28e..0000000 --- a/server/api/data/data-source.ts +++ /dev/null @@ -1,15 +0,0 @@ -import {DataSource} from "typeorm"; - -export const AppDataSource = new DataSource({ - type: "mysql", - host: "localhost", - port: 3306, - username: "root", - password: "Zengtudor", - database: "hot", - synchronize: false, - logging: true, - entities: [], - subscribers: [], - migrations: [], -}) \ No newline at end of file