1
0

stubbed /render endpoint

This commit is contained in:
Nicola Clark 2024-10-17 19:53:56 +00:00
parent 6985b11352
commit e65fc854dc
Signed by: nicola
GPG Key ID: 3E1710E7FF08956C

View File

@ -0,0 +1,13 @@
import { error, json, type RequestEvent } from '@sveltejs/kit';
export async function POST({ request }: RequestEvent) {
if (!(request.headers.get('Content-Type') ?? 'bad').includes('text/html')) {
error(400, 'request body not HTML');
}
if (!request.body) {
error(400, 'no body in request');
}
return json({ msg: 'to be implemented' });
}