aboutsummaryrefslogtreecommitdiff
path: root/src/pages/create/thread.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages/create/thread.ts')
-rw-r--r--src/pages/create/thread.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pages/create/thread.ts b/src/pages/create/thread.ts
index 0a0b7d1..b3a02be 100644
--- a/src/pages/create/thread.ts
+++ b/src/pages/create/thread.ts
@@ -1,13 +1,14 @@
import { api } from '../../lib/api';
import { processThreadOut } from '../../lib/thread';
+import Thread from '../../models/Thread';
export async function post({ request }) {
const form = await request.formData();
- console.log(form);
-
let t: Thread = await processThreadOut(form);
+ console.log(t);
+
await api('post', `thread/${form.get('board')}`, JSON.stringify(t));
return new Response(t.id, {