Remove unused endpoint

This commit is contained in:
Daniel Lugo 2021-07-23 10:43:14 -04:00
parent 3bae8e5122
commit bff2d1becb

View file

@ -2282,20 +2282,6 @@ module.exports = async (
ap.put(`/api/gun/follows/:publicKey`, apiGunFollowsPut) ap.put(`/api/gun/follows/:publicKey`, apiGunFollowsPut)
ap.delete(`/api/gun/follows/:publicKey`, apiGunFollowsDelete) 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<{}>} * @type {RequestHandler<{}>}
*/ */
@ -2349,7 +2335,6 @@ module.exports = async (
} }
} }
ap.get(`/api/gun/me`, apiGunMeGet)
ap.put(`/api/gun/me`, apiGunMePut) ap.put(`/api/gun/me`, apiGunMePut)
ap.get(`/api/gun/auth`, (_, res) => { ap.get(`/api/gun/auth`, (_, res) => {