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) /**