Update [hash].js
This commit is contained in:
parent
aacfca136c
commit
b15595ecb1
@ -3,22 +3,12 @@ const z = require("zod")
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
PUT: {
|
PUT: {
|
||||||
headers: z.object({
|
headers: z.object({
|
||||||
"content-type": z.string().regex(/application\/json/i),
|
|
||||||
"authorization": z.string().startsWith("Bearer ")
|
"authorization": z.string().startsWith("Bearer ")
|
||||||
}),
|
|
||||||
query: z.object({
|
|
||||||
uuid: z.string().uuid(),
|
|
||||||
hash: z.string().length(64)
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
DELETE: {
|
DELETE: {
|
||||||
headers: z.object({
|
headers: z.object({
|
||||||
"content-type": z.string().regex(/application\/json/i),
|
|
||||||
"authorization": z.string().startsWith("Bearer ")
|
"authorization": z.string().startsWith("Bearer ")
|
||||||
}),
|
|
||||||
query: z.object({
|
|
||||||
uuid: z.string().uuid(),
|
|
||||||
hash: z.string().length(64)
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user