stashing code
This commit is contained in:
10
apps/frontend/src/routes/api/logs/+server.ts
Normal file
10
apps/frontend/src/routes/api/logs/+server.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { Logger } from "@pkg/logger";
|
||||
import type { LogEntry } from "@pkg/logger/client";
|
||||
import type { RequestHandler } from "@sveltejs/kit";
|
||||
|
||||
export const POST: RequestHandler = async ({ request }) => {
|
||||
const payload = (await request.json()) as LogEntry;
|
||||
Logger.info("From the frontend");
|
||||
Logger.info(payload);
|
||||
return new Response(null, { status: 200 });
|
||||
};
|
||||
Reference in New Issue
Block a user