stubbed /render endpoint
This commit is contained in:
parent
6985b11352
commit
e65fc854dc
13
src/routes/render/+server.ts
Normal file
13
src/routes/render/+server.ts
Normal 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' });
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user