From 7d7d1f98de0d6a291dff188cfad68044faf25fe2 Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Wed, 10 Jun 2020 13:15:52 -0400 Subject: [PATCH] only use put --- src/routes.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/routes.js b/src/routes.js index 960c1641..e3f40945 100644 --- a/src/routes.js +++ b/src/routes.js @@ -1866,7 +1866,7 @@ module.exports = async ( /** * @type {RequestHandler} */ - const apiGunFollowsPostOrPut = async (req, res) => { + const apiGunFollowsPut = async (req, res) => { try { const { publicKey } = req.params; if (!publicKey) { @@ -1908,8 +1908,7 @@ module.exports = async ( } ap.get('/api/gun/follows/:publicKey', apiGunFollowsGet) - ap.post(`/api/gun/follows/:publicKey`, apiGunFollowsPostOrPut) - ap.put(`/api/gun/follows/:publicKey`,apiGunFollowsPostOrPut) + ap.put(`/api/gun/follows/:publicKey`,apiGunFollowsPut) ap.delete(`/api/gun/follows/:publicKey`, apiGunFollowsDelete) /**