Update [hash].js
This commit is contained in:
parent
99598f2b7a
commit
9469822ef9
@ -1,15 +1,14 @@
|
||||
const z = require("zod")
|
||||
|
||||
const headerSchema = z.object({
|
||||
authorization: z.string()
|
||||
.min(6)
|
||||
}).passthrough()
|
||||
|
||||
module.exports = {
|
||||
PUT: {
|
||||
headers: headerSchema,
|
||||
headers: z.object({
|
||||
"authorization": z.string().startsWith("Bearer ")
|
||||
})
|
||||
},
|
||||
DELETE: {
|
||||
headers: headerSchema
|
||||
headers: z.object({
|
||||
"authorization": z.string().startsWith("Bearer ")
|
||||
})
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user