Add the schemas for route params

This commit is contained in:
Oliver Akins 2022-08-09 19:11:48 -06:00
parent 543b9be2c1
commit 0eaaa4a94d
No known key found for this signature in database
GPG key ID: 3C2014AF9457AF99

4
src/schemas/params.ts Normal file
View file

@ -0,0 +1,4 @@
import Joi from "joi";
export const channelNameSchema = Joi.string().pattern(/^[0-9A-Za-z\-_]+$/);
export const counterNameSchema = Joi.string().pattern(/^[0-9A-Za-z\-]+$/);