Add the schemas for route params
This commit is contained in:
parent
543b9be2c1
commit
0eaaa4a94d
1 changed files with 4 additions and 0 deletions
4
src/schemas/params.ts
Normal file
4
src/schemas/params.ts
Normal 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\-]+$/);
|
||||||
Loading…
Add table
Add a link
Reference in a new issue