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:
parent
89c344dba4
commit
e0ce715a1d
6 changed files with 51 additions and 18 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue