add controller

This commit is contained in:
2025-05-21 22:47:16 +08:00
parent 619a59e33e
commit 552cbf2e57
4 changed files with 82 additions and 38 deletions
+8
View File
@@ -10,3 +10,11 @@ export enum PostOrder {
COMMENTCOUNT = 'commentCount',
CUSTOM = 'custom',
}
export const DEFAULT_VALIDATION_CONFIG = Object.freeze({
transform: true,
whitelist: true,
forbidNonWhitelisted: true,
forbidUnknownValues: true,
validationError: { target: false },
});