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.
14 lines
247 B
JavaScript
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
|
|
}
|
|
} |