bio route
This commit is contained in:
parent
a89dcd5b2a
commit
f47346572c
1 changed files with 13 additions and 0 deletions
|
|
@ -1659,6 +1659,19 @@ module.exports = async (
|
|||
}
|
||||
})
|
||||
|
||||
app.get(`/api/gun/${GunEvent.ON_BIO}`, async (_, res) => {
|
||||
try {
|
||||
res.json({
|
||||
data: await timeout5(user.get(Key.BIO).then())
|
||||
})
|
||||
} catch (err) {
|
||||
logger.error(err)
|
||||
res.status(500).json({
|
||||
errorMessage: typeof err === 'string' ? err : err.message
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
/**
|
||||
* Return app so that it can be used by express.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue