getUpdateAvailability

Returns if the update is available.

Does not actually update anything, just tells if it's possible.

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"
}

If no userVersion is provided in the URL, the following is returned:

{
  "message": "No userVersion provided"
}

If an unsupported method is used, the following is returned:

{
  "message":"Unsupported HTTP method","method":"POST"
}

The correct method to use is GET.