Refactor API and schema paths, fix key usage and profile data

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.
This commit is contained in:
2025-12-30 13:41:19 +01:00
parent 36a9a0b193
commit da8ab9d488
13 changed files with 7 additions and 7 deletions

View File

@@ -0,0 +1,13 @@
const z = require("zod")
module.exports = {
GET: {
params: z.object({
username: z.string().min(1, { message: "Username is required." })
}),
error: {
code: 404,
message: "Not Found"
}
}
}