1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-07-19 11:39:36 +02:00

Added support for custom SVG icons

This commit is contained in:
unknown 2021-08-06 15:15:54 +02:00
parent a01661d0d5
commit 1699146f79
14 changed files with 356 additions and 270 deletions

View file

@ -126,8 +126,16 @@ exports.getApps = asyncWrapper(async (req, res, next) => {
});
}
// Set header to fetch containers info every time
res.status(200).setHeader('Cache-Control', 'no-store').json({
if (process.env.NODE_ENV === 'production') {
// Set header to fetch containers info every time
res.status(200).setHeader('Cache-Control', 'no-store').json({
success: true,
data: apps
});
return;
}
res.status(200).json({
success: true,
data: apps
});