Introduces legacy endpoints for login, joinserver, and checkserver, along with their input validation schemas. Updates sessionsService with joinLegacyServer to support legacy session handling. This enables compatibility with legacy clients requiring these authentication flows.
11 lines
219 B
JavaScript
11 lines
219 B
JavaScript
const z = require("zod")
|
|
|
|
module.exports = {
|
|
GET: {
|
|
query: z.object({
|
|
user: z.string().min(1),
|
|
sessionId: z.string().min(1),
|
|
serverId: z.string().min(1)
|
|
})
|
|
}
|
|
} |