From e152c2ff0db70fbcfaf97fb0705d2366376e6590 Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Wed, 10 Jun 2020 11:04:23 -0400 Subject: [PATCH] actually send res --- src/routes.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/routes.js b/src/routes.js index d50c828c..56dfb573 100644 --- a/src/routes.js +++ b/src/routes.js @@ -1876,7 +1876,9 @@ module.exports = async ( await GunActions.follow(req.params.publicKey, false) // 201 would be extraneous here. Implement it inside app.put - return res.status(200) + return res.status(200).json({ + ok: true + }) } catch (err) { return res.status(500).json({ errorMessage: err.message || 'Unknown error inside /api/gun/follows/' @@ -1895,7 +1897,9 @@ module.exports = async ( } await GunActions.unfollow(req.params.publicKey) - return res.status(200) + return res.status(200).json({ + ok: true + }) } catch (err) { return res.status(500).json({ errorMessage: err.message || 'Unknown error inside /api/gun/follows/'