From b20d8cfac610ae05316381057d8b404ad4061e02 Mon Sep 17 00:00:00 2001 From: luchenqun Date: Fri, 12 Oct 2018 14:11:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=89=8B=E6=9C=BA=E5=8F=AA?= =?UTF-8?q?=E6=98=BE=E7=A4=BA60%=E9=97=AE=E9=A2=98=E4=BB=A5=E5=8F=8A?= =?UTF-8?q?=E6=9C=80=E5=B0=8F=E9=AB=98=E5=BA=A6=C3=A6=C2=98=E5=85=85?= =?UTF-8?q?=E6=BB=A1=E5=B1=8F=E5=B9=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/api.js | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/routes/api.js b/routes/api.js index df6ad96..bb550d5 100644 --- a/routes/api.js +++ b/routes/api.js @@ -1435,7 +1435,22 @@ api.get('/notes', function(req, res) { } if (params.shareNote) { db.getNote(params.shareNote) - .then((data) => res.send(`
${data}
`)) + .then((data) => res.send(` + + + + + +
+
\n\n${data}
+
+ `)) .catch((err) => console.log('notes', err)); } else { params.user_id = req.session.user.id;