feat(shopping): DELETE /api/shopping-list/checked (Erledigte entfernen)
Some checks failed
Build & Publish Docker Image / build-and-push (push) Has been cancelled
Some checks failed
Build & Publish Docker Image / build-and-push (push) Has been cancelled
This commit is contained in:
9
src/routes/api/shopping-list/checked/+server.ts
Normal file
9
src/routes/api/shopping-list/checked/+server.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import type { RequestHandler } from './$types';
|
||||
import { json } from '@sveltejs/kit';
|
||||
import { getDb } from '$lib/server/db';
|
||||
import { clearCheckedItems } from '$lib/server/shopping/repository';
|
||||
|
||||
export const DELETE: RequestHandler = async () => {
|
||||
clearCheckedItems(getDb());
|
||||
return json({ ok: true });
|
||||
};
|
||||
Reference in New Issue
Block a user