formatting

This commit is contained in:
proddy
2025-03-02 15:13:06 +01:00
parent ea9b6b3e00
commit d03ab7a16f

View File

@@ -5049,20 +5049,21 @@ router
});
// Mock GitHub API
// https://api.github.com/repos/emsesp/EMS-ESP32/releases
router
.get(GH_ENDPOINT_ROOT + '/tags/latest', () => {
const data = {
name: 'v' + LATEST_DEV_VERSION,
published_at: new Date().toISOString()
published_at: new Date().toISOString() // use todays date
};
console.log('returning latest development version: ', data);
console.log('returning latest development version (today): ', data);
return data;
})
.get(GH_ENDPOINT_ROOT + '/latest', () => {
const data = {
name: 'v' + LATEST_STABLE_VERSION,
published_at: '2025-02-07T20:09:46Z'
published_at: '2025-03-01T13:29:13.999Z'
};
console.log('returning latest stable version: ', data);
return data;