Files
tatort/src/routes/api/users/[user]/+server.ts
Chi Cong Tran 1158c88d43
All checks were successful
InnoHub Processor/tatort/pipeline/head This commit looks good
fix SonarQube issues: mainly unused imports
2025-11-24 08:41:46 +01:00

9 lines
235 B
TypeScript

import { deleteUser } from '$lib/server/userService';
export async function DELETE({ params }) {
const userId = params.user;
const rowCount = deleteUser(userId);
return new Response(null, { status: rowCount == 1 ? 204 : 400 });
}