Update [hash].js

This commit is contained in:
Gilles Lazures 2026-01-18 22:58:43 +01:00
parent b15595ecb1
commit adddbadbf3

View File

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