Public
Like
getUpdateAvailability
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v10View latest version
Returns if the update is available.
Accessed via https://gaimeri17--d53f24729b424405a46d59f47fe47dab.web.val.run/1.0.0 where "1.0.0" is your version.
Current version is defined in the environment variable currentVersion.
If update is available, the following is returned:
{
"message": "Update is available",
"userVersion": "1.0.0",
"serverVersion": "1.0.1"
}
If an update is not available, the following is returned:
{
"message": "Update is not available",
"userVersion": "1.0.0",
"serverVersion": "1.0.0"
}