diff --git a/server/src/core/controllers/http_controller.ts b/server/src/core/controllers/http_controller.ts index bb23330..dca5377 100644 --- a/server/src/core/controllers/http_controller.ts +++ b/server/src/core/controllers/http_controller.ts @@ -10,13 +10,16 @@ export type ResponseBase = Promise>; export abstract class CallbackStrategyWithEmpty { abstract call(): ResponseBase; } -export abstract class CallbackStrategyWithValidationModel { - abstract call(a: T): ResponseBase; +export abstract class CallbackStrategyWithValidationModel { + abstract validationModel: V; + abstract call(a: V): ResponseBase; } export abstract class CallbackStrategyWithIdQuery { + abstract idValidationExpression: RegExp | null; abstract call(id: string): ResponseBase; } export abstract class CallBackStrategyWithQueryPage { + abstract validationPageExpression: RegExp | null; abstract call(page: string): ResponseBase; }