Create categories.js

This commit is contained in:
Aleksandr Statciuk 2022-02-10 21:23:40 +03:00
parent 298e3e74fe
commit 528952846c

View file

@ -0,0 +1,10 @@
const Joi = require('joi')
module.exports = {
id: Joi.string()
.regex(/^[a-z]+$/)
.required(),
name: Joi.string()
.regex(/^[A-Z]+$/i)
.required()
}