mock endpoint
This commit is contained in:
parent
bde6362640
commit
779783aeec
1 changed files with 4 additions and 4 deletions
|
|
@ -1849,12 +1849,12 @@ module.exports = async (
|
||||||
/**
|
/**
|
||||||
* @type {RequestHandler<FollowsRouteParams>}
|
* @type {RequestHandler<FollowsRouteParams>}
|
||||||
*/
|
*/
|
||||||
const apiGunFollowsGet = async (req, res) => {
|
const apiGunFollowsGet = (_, res) => {
|
||||||
try {
|
try {
|
||||||
const { publicKey } = req.params;
|
// const { publicKey } = req.params;
|
||||||
const currFollows = await GunGetters.currentFollows()
|
// const currFollows = await GunGetters.currentFollows()
|
||||||
|
|
||||||
return res.status(200).json(publicKey ? currFollows[publicKey] : currFollows)
|
return res.status(200).json({})
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
return res.status(500).json({
|
return res.status(500).json({
|
||||||
errorMessage: err.message || 'Unknown ERR at GET /api/follows'
|
errorMessage: err.message || 'Unknown ERR at GET /api/follows'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue