mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-19 19:28:59 +00:00
Add the release to the status endpoint
Change-type: minor Signed-off-by: Cameron Diver <cameron@balena.io>
This commit is contained in:
parent
769e2f3c51
commit
c0e68bb069
@ -385,6 +385,7 @@ export function createV2Api(router: Router, applications: ApplicationManager) {
|
||||
|
||||
router.get('/v2/state/status', async (_req, res) => {
|
||||
const localMode = await applications.config.get('localMode');
|
||||
const currentRelease = await applications.config.get('currentCommit');
|
||||
|
||||
const pending = applications.deviceState.applyInProgress;
|
||||
const containerStates = (await applications.services.getAll()).map(svc =>
|
||||
@ -432,6 +433,7 @@ export function createV2Api(router: Router, applications: ApplicationManager) {
|
||||
overallDownloadProgress,
|
||||
containers: containerStates,
|
||||
images: imagesStates,
|
||||
release: currentRelease,
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user