blob: 51de25e29a37d4ae7d8a67ef18c105c2908f61fa (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import { post } from '$lib/utils';
export async function POST({ request }) {
try {
let user = await request.json();
let body = await post('/register', { user });
throw new Error("@migration task: Migrate this return statement (https://github.com/sveltejs/kit/discussions/5774#discussioncomment-3292699)");
return { body };
} catch (e) {
throw new Error("@migration task: Migrate this return statement (https://github.com/sveltejs/kit/discussions/5774#discussioncomment-3292699)");
return {
status: 500,
body: e
};
}
}
|