aboutsummaryrefslogtreecommitdiff
path: root/src/pages/create/thread.ts
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2022-08-29 19:01:20 +0300
committerkartofen <mladenovnasko0@gmail.com>2022-08-29 19:01:20 +0300
commit8e4163e3f08e29f38fe87c59d8cfb91e0fa98063 (patch)
tree2b117f4bafa0a4d10252eef95ca868a247a081a1 /src/pages/create/thread.ts
parent9d952483f250a97cbeab4061fa1c4e68341b330f (diff)
everything works
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, {