mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2024-11-22 08:07:30 +00:00
Add canonical origin to stats API
This commit is contained in:
parent
be3324ffce
commit
53ab0764a9
@ -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 = [
|
||||||
|
Loading…
Reference in New Issue
Block a user