mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2025-12-16 03:08:47 +00:00
Default stats inner version to 1.x instead of 1.0
This commit is contained in:
@@ -99,7 +99,7 @@ module.exports = [
|
||||
},
|
||||
{
|
||||
route: "/api/stats/2.0", methods: ["GET"], code: async ({url}) => {
|
||||
const selected = semver.maxSatisfying([...innerMap.keys()], url.searchParams.get("bv") || "1.0")
|
||||
const selected = semver.maxSatisfying([...innerMap.keys()], url.searchParams.get("bv") || "1.x")
|
||||
if (!selected) return reply(400, {
|
||||
status: "fail",
|
||||
fields: ["q:bv"],
|
||||
|
||||
Reference in New Issue
Block a user