mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-11 07:55:52 +01:00
Working on new update indicator
This commit is contained in:
@@ -13,10 +13,10 @@ async function Get(req: NextApiRequest, res: NextApiResponse) {
|
||||
|
||||
// Return 200 if the alive property is true
|
||||
if (response.alive) {
|
||||
return res.status(200).end();
|
||||
return res.status(200).json({ alive: true });
|
||||
}
|
||||
// Return 404 if the alive property is false
|
||||
return res.status(404).end();
|
||||
return res.status(404).json({ alive: false });
|
||||
}
|
||||
|
||||
export default async (req: NextApiRequest, res: NextApiResponse) => {
|
||||
|
||||
Reference in New Issue
Block a user