blob: 718707d083543477bc07c73b38048b83dc254ddf (
plain) (
blame)
1
2
3
4
5
6
7
8
|
import { auth, post } from '$lib/utils';
export async function POST({ cookies, request }) {
let body = await request.json();
await post('/lightning/send', body, auth(cookies));
return new Response(JSON.stringify('ok'), { headers: { 'content-type': 'application/json' } });
}
|