addd a few more endpoints

This commit is contained in:
Devin Zuczek
2026-06-14 22:37:06 -04:00
parent 2f70eab186
commit 796442e0cf
8 changed files with 141 additions and 28 deletions
+4
View File
@@ -349,6 +349,10 @@ const app = new Hono<App>()
return c.json({ errorCode: 0, roomInstance: instance })
})
// Region ping reports — accept-and-ack (the reference returns Ok()).
.put('/player/photonregionpings', (c) => c.body(null, 200))
.put('/player/gameserverregionpings', (c) => c.body(null, 200))
// ---- Room instance -------------------------------------------------------
.post('/roominstance/:id/reportjoinresult', (c) => c.body(null, 200))
@@ -118,6 +118,11 @@ describe('public endpoints', () => {
expect(res.status).toBe(200)
})
test('PUT /player/photonregionpings returns 200', async () => {
const res = await exports.default.fetch(`${ORIGIN}/player/photonregionpings`, { method: 'PUT' })
expect(res.status).toBe(200)
})
test('POST /roominstance/:id/reportjoinresult returns 200', async () => {
const res = await exports.default.fetch(`${ORIGIN}/roominstance/5/reportjoinresult`, {
method: 'POST',