Update [hash].js

This commit is contained in:
Gilles Lazures 2026-01-18 22:54:03 +01:00
parent aacfca136c
commit b15595ecb1

View File

@ -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)
}) })
} }
} }