style(shopping): GET/DELETE endpoint 2-space indent
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:
@@ -4,10 +4,10 @@ import { getDb } from '$lib/server/db';
|
|||||||
import { clearCart, listShoppingList } from '$lib/server/shopping/repository';
|
import { clearCart, listShoppingList } from '$lib/server/shopping/repository';
|
||||||
|
|
||||||
export const GET: RequestHandler = async () => {
|
export const GET: RequestHandler = async () => {
|
||||||
return json(listShoppingList(getDb()));
|
return json(listShoppingList(getDb()));
|
||||||
};
|
};
|
||||||
|
|
||||||
export const DELETE: RequestHandler = async () => {
|
export const DELETE: RequestHandler = async () => {
|
||||||
clearCart(getDb());
|
clearCart(getDb());
|
||||||
return json({ ok: true });
|
return json({ ok: true });
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user