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]); -});