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