From be1e3909b6d57fe9ee2bf0459016f02a2a243c6b Mon Sep 17 00:00:00 2001 From: Wroclaw Date: Mon, 6 Nov 2023 19:48:35 +0100 Subject: [PATCH] Delete unrelated testing stuff --- server/api/dbtest/[id].delete.ts | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 server/api/dbtest/[id].delete.ts diff --git a/server/api/dbtest/[id].delete.ts b/server/api/dbtest/[id].delete.ts deleted file mode 100644 index 749540a..0000000 --- a/server/api/dbtest/[id].delete.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { defineEventHandler } from "h3"; - -import { database } from "~/server/utils/database"; - -export default defineEventHandler(async (e) => { - if (!e.context.params?.id) return Error("id is not provided"); - const rowID = e.context.params.id; - await database.execute("DELETE FROM `sch_baza_smartfony`.`lombardy` WHERE `id` = ?", [rowID]); -});