From bff2d1becbc3c0a0c3296fc815635a0c425f612a Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Fri, 23 Jul 2021 10:43:14 -0400 Subject: [PATCH] Remove unused endpoint --- src/routes.js | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/routes.js b/src/routes.js index 6f6b1e5d..ff0fd167 100644 --- a/src/routes.js +++ b/src/routes.js @@ -2282,20 +2282,6 @@ module.exports = async ( ap.put(`/api/gun/follows/:publicKey`, apiGunFollowsPut) ap.delete(`/api/gun/follows/:publicKey`, apiGunFollowsDelete) - /** - * @type {RequestHandler<{}>} - */ - const apiGunMeGet = async (_, res) => { - try { - return res.status(200).json(await GunGetters.getMyUser()) - } catch (err) { - logger.error(err) - return res.status(500).json({ - errorMessage: err.message - }) - } - } - /** * @type {RequestHandler<{}>} */ @@ -2349,7 +2335,6 @@ module.exports = async ( } } - ap.get(`/api/gun/me`, apiGunMeGet) ap.put(`/api/gun/me`, apiGunMePut) ap.get(`/api/gun/auth`, (_, res) => {