Update [hash].js
This commit is contained in:
parent
b15595ecb1
commit
adddbadbf3
@ -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 ")
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
};
|
||||||
Loading…
x
Reference in New Issue
Block a user