Renamed 'mojangapi' directories to 'api' for both routes and schemas to standardize API structure. Updated serverService to use the correct public key (profilePropertyKeys) for server metadata. Fixed sessionsService to return full skin and cape data arrays instead of just the first element.
18 lines
463 B
JavaScript
18 lines
463 B
JavaScript
const z = require("zod")
|
|
|
|
module.exports = {
|
|
GET: {
|
|
headers: z.object({
|
|
"content-type": z.string()
|
|
.regex(/application\/json/i, { message: "Content-Type must be application/json" })
|
|
.optional()
|
|
}),
|
|
params: z.object({
|
|
uuid: z.string().uuid({ message: "Invalid UUID format." })
|
|
}),
|
|
error: {
|
|
code: 204,
|
|
message: "No content"
|
|
}
|
|
}
|
|
} |