mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-29 13:58:54 +03:00
11 lines
293 B
TypeScript
11 lines
293 B
TypeScript
export default defineEventHandler(async (event) => {
|
|
const { server } = getRouterParams(event)
|
|
const { key } = getQuery(event)
|
|
|
|
if (key !== String(useRuntimeConfig().adminKey))
|
|
return { status: false, error: 'incorrect key' }
|
|
|
|
await deleteApp(server)
|
|
|
|
return { status: true }
|
|
})
|