optimize routes

This commit is contained in:
Devin Zuczek
2026-07-07 01:22:05 -04:00
parent 605ba02e6e
commit 6a49fa19ac
13 changed files with 636 additions and 543 deletions
+19
View File
@@ -0,0 +1,19 @@
import { Hono } from 'hono'
import type { App } from '../context'
// ---- Player reporting ------------------------------------------------------
export const moderationRoutes = new Hono<App>({ strict: false })
.get('/api/PlayerReporting/v1/moderationBlockDetails', (c) =>
c.json({
ReportCategory: 0,
Duration: 0,
GameSessionId: 0,
IsHostKick: false,
Message: '',
PlayerIdReporter: null,
IsBan: false,
})
)
.get('/api/PlayerReporting/v1/voteToKickReasons', (c) => c.json([])) // TODO: hydrate from JSON/vtkreasons.json
.post('/api/PlayerReporting/v1/hile', (c) => c.json(false))