azures04 53e58bdb30 Log header validation result in server.js
Added a console.log statement to output the result of header validation in the request handler. Also fixed a minor formatting issue in the cape texture schema file.
2026-01-18 23:00:59 +01:00

14 lines
247 B
JavaScript

const z = require("zod")
const headerSchema = z.object({
authorization: z.string().startsWith("Bearer ")
}).passthrough()
module.exports = {
PUT: {
headers: headerSchema,
},
DELETE: {
headers: headerSchema
}
}