Add canonical origin to stats API

This commit is contained in:
Cadence Ember 2020-05-09 03:18:38 +12:00
parent be3324ffce
commit 53ab0764a9
No known key found for this signature in database
GPG Key ID: 128B99B1B74A6412
1 changed files with 6 additions and 1 deletions

View File

@ -28,7 +28,7 @@ let commit = ""
// Set up inner versioning
const displayVersions = ["1.0", "1.1", "1.2", "1.3"]
const displayVersions = ["1.0", "1.1", "1.2", "1.3", "1.4"]
const versions = new Map(displayVersions.map(v => [v, semver.coerce(v)]))
const features = [
"PAGE_PROFILE",
@ -72,6 +72,11 @@ const innerMap = new Map()
torAvailable: switcher.canUseTor() // server.js holds on loading this file until tor state is known, so this is fine
}
})
addVersion("1.4", {
settings: {
canonicalOrigin: constants.website_origin
}
})
}
module.exports = [