validation

This commit is contained in:
Miodec 2023-07-17 13:59:27 +02:00
parent 1a8f0b8f18
commit 469bdfe32f

View file

@ -67,7 +67,7 @@ router.patch(
checkIfUserCanManageApeKeys,
validateRequest({
params: {
apeKeyId: joi.string().required(),
apeKeyId: joi.string().token().required(),
},
body: {
name: apeKeyNameSchema,