1
0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2024-11-22 16:17:29 +00:00

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

View File

@ -28,7 +28,7 @@ let commit = ""
// Set up inner versioning // 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 versions = new Map(displayVersions.map(v => [v, semver.coerce(v)]))
const features = [ const features = [
"PAGE_PROFILE", "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 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 = [ module.exports = [