add more endpoints

This commit is contained in:
Devin Zuczek
2026-06-11 02:10:01 -04:00
parent 0fea1fff14
commit 4a97e05866
37 changed files with 55656 additions and 16 deletions
+12 -2
View File
@@ -71,9 +71,19 @@ const app = new Hono<App>({ strict: false })
.notFound(withNotFound())
// ---- Config / version ----------------------------------------------------
.get('/api/config/v1/amplitude', (c) => c.json({ AmplitudeKey: 'NoKeyProvided' }))
.get('/api/config/v1/amplitude', (c) => c.json({
AmplitudeKey: "a",
StatSigKey: "a",
RudderStackKey: "a",
UseRudderStack: false
}))
.get('/api/config/v2', (c) => c.json(apiConfigV2))
.get('/api/versioncheck/v4', (c) => c.json({ VersionStatus: 0 }))
.get('/api/versioncheck/v4', (c) => c.json({
"VersionStatus": 0,
"UpdateNotificationStage": 0,
"IsVersionIslanded": false,
"IsCrossPlayDisabled": false,
}))
.get('/api/gameconfigs/v1/all', (c) => c.json(gameConfigsV1All))
// ---- Social ---------------------------------------------------------------
+1 -1
View File
@@ -42,7 +42,7 @@ describe('public endpoints', () => {
test('GET /api/versioncheck/v4', async () => {
const res = await exports.default.fetch(`${ORIGIN}/api/versioncheck/v4`)
expect(await res.json()).toEqual({ VersionStatus: 0 })
expect(await res.json()).toMatchObject({ VersionStatus: 0 })
})
test('GET /api/relationships/v2/get returns empty array', async () => {