Docker 파일

This commit is contained in:
2025-12-28 14:31:12 +09:00
parent ba7a208da9
commit 6196c03e46
23 changed files with 302 additions and 355 deletions

View File

@@ -1,10 +1,9 @@
import { getDb } from '../../../../utils/db'
import { execute } from '../../../../utils/db'
export default defineEventHandler((event) => {
const db = getDb()
export default defineEventHandler(async (event) => {
const id = getRouterParam(event, 'id')
db.prepare(`DELETE FROM pubnet_targets WHERE id = ?`).run(id)
await execute(`DELETE FROM pubnet_targets WHERE id = $1`, [id])
return { success: true }
})