2023-11-06 02:57:00 +01:00
|
|
|
import { defineEventHandler } from "h3";
|
2023-05-11 06:03:22 +02:00
|
|
|
|
|
|
|
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]);
|
|
|
|
});
|