From 6564d87a6e03577c3dafcf3d6e1a56a555d7f37b Mon Sep 17 00:00:00 2001 From: Andrew Yates Date: Sun, 8 Apr 2018 00:35:26 -0700 Subject: [PATCH] Life is a tale told by an idiot,ful of sound and fury,Signifying nothing --- index.html | 2 +- routes/create/thread.js | 22 ++-------------------- src/components/NewThread.vue | 2 +- 3 files changed, 4 insertions(+), 22 deletions(-) diff --git a/index.html b/index.html index 378760b..20a461d 100644 --- a/index.html +++ b/index.html @@ -1,4 +1,4 @@ - + diff --git a/routes/create/thread.js b/routes/create/thread.js index d36f269..b45f74d 100644 --- a/routes/create/thread.js +++ b/routes/create/thread.js @@ -60,29 +60,11 @@ module.exports = { return next(err); } - res.json({ - result: { - name: name, - board: board, - attachment_name: attachment.originalname, - attachment_path: target_path, - content: content, - title: title, - pinned: pinned - } - }); + res.redirect('/' + board + '/thread/' + thread._id); }); }); } else { - res.json({ - result: { - name: name, - board: board, - content: content, - title: title, - pinned: pinned - } - }); + res.redirect('/' + board + '/thread/' + thread._id); } }); }); diff --git a/src/components/NewThread.vue b/src/components/NewThread.vue index 4f0553d..dd4aadd 100644 --- a/src/components/NewThread.vue +++ b/src/components/NewThread.vue @@ -23,7 +23,7 @@ -