add ps2.nice.kiwi as source -- fix + docs

This commit is contained in:
41666 2022-12-22 15:55:51 -05:00
parent 2a843d2274
commit ec6f39cf4e
4 changed files with 13 additions and 6 deletions

View file

@ -38,7 +38,7 @@ export const handleAll = async (
flags: Flags
): Promise<Response> => {
const cached = await cache.get(`all${debug ? ".debug" : ""}`);
if (false && cached) {
if (cached) {
return new Response(JSON.stringify(cached), {
headers: {
"content-type": "application/json",

View file

@ -13,6 +13,7 @@ This service aggregates the population data from the following sources:
- https://ps2.fisu.pw/
- https://wt.honu.pw/
- https://voidwell.com/ (caveat: no factions, non-standard counting method)
- https://ps2.nice.kiwi/
## Routes
@ -30,7 +31,8 @@ GET /:id - Get one world by ID
"saerro": 282,
"fisu": 271,
"honu": 292,
"voidwell": 298
"voidwell": 298,
"kiwi": 281
}
}
@ -44,12 +46,14 @@ GET /:id - Get one world by ID
"fisu": { ... },
"honu": { ... },
"voidwell": { ... }
"kiwi": { ... }
},
"lastFetchTimes": {
"saerro": "2020-10-10T00:00:00.000Z",
"fisu": "2020-10-10T00:00:00.000Z",
"honu": "2020-10-10T00:00:00.000Z",
"voidwell": "2020-10-10T00:00:00.000Z"
"kiwi": "2020-10-10T00:00:00.000Z"
}
}
@ -68,7 +72,8 @@ GET /all - Get all worlds
"saerro": 282,
"fisu": 271,
"honu": 292,
"voidwell": 298
"voidwell": 298,
"kiwi": 281
}
},
{
@ -83,7 +88,8 @@ GET /all - Get all worlds
"saerro": 95,
"fisu": 48,
"honu": 91,
"voidwell": 99
"voidwell": 99,
"kiwi": 97
}
}
]