mirror of
https://github.com/djdevin/recflare.git
synced 2026-09-08 14:41:28 -07:00
addd a few more endpoints
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user