From 0eaaa4a94d981d32c070087e51054cdc33d40ac9 Mon Sep 17 00:00:00 2001 From: Oliver Akins Date: Tue, 9 Aug 2022 19:11:48 -0600 Subject: [PATCH] Add the schemas for route params --- src/schemas/params.ts | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 src/schemas/params.ts diff --git a/src/schemas/params.ts b/src/schemas/params.ts new file mode 100644 index 0000000..458ca45 --- /dev/null +++ b/src/schemas/params.ts @@ -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\-]+$/); \ No newline at end of file