1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 17:59:37 +02:00

Check latest plugins version

This commit is contained in:
Chocobozzz 2019-07-16 14:52:24 +02:00 committed by Chocobozzz
parent 89c344dba4
commit e0ce715a1d
6 changed files with 51 additions and 18 deletions

View file

@ -180,5 +180,11 @@ async function listAvailablePlugins (req: express.Request, res: express.Response
const resultList = await listAvailablePluginsFromIndex(query)
if (!resultList) {
return res.status(503)
.json({ error: 'Plugin index unavailable. Please retry later' })
.end()
}
return res.json(resultList)
}