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:
13
schemas/api/users/profiles/minecraft/[username].js
Normal file
13
schemas/api/users/profiles/minecraft/[username].js
Normal 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"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user