add ps2.nice.kiwi as source -- fix + docs
This commit is contained in:
parent
2a843d2274
commit
ec6f39cf4e
4 changed files with 13 additions and 6 deletions
|
@ -6,6 +6,7 @@ A Planetside 2 population aggreggation API between
|
|||
- https://wt.honu.pw
|
||||
- https://saerro.ps2.live
|
||||
- https://voidwell.com
|
||||
- https://ps2.nice.kiwi
|
||||
|
||||
Has some jank filters and will average between all 4 sources with as much data as can be used.
|
||||
|
||||
|
@ -27,5 +28,5 @@ Need help? Talk to us on the [Planetside Community Developers Discord](https://d
|
|||
```
|
||||
npm install
|
||||
|
||||
npm run dev
|
||||
npm start
|
||||
```
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
|
@ -14,7 +14,7 @@ DISABLE_VOIDWELL = "0"
|
|||
DISABLE_KIWI = "0"
|
||||
DISABLE_CACHE = "0"
|
||||
VOIDWELL_USE_PS4 = "0"
|
||||
FISU_USE_PS4EU = "0"
|
||||
FISU_USE_PS4EU = "1"
|
||||
|
||||
[[kv_namespaces]]
|
||||
binding = "CACHE"
|
||||
|
|
Loading…
Add table
Reference in a new issue