瀏覽代碼

♻️ refactor(auth): inline RegisterSchema in register route

- remove external import of RegisterSchema and define it inline in the route file
- maintain same validation rules while improving code locality for the registration route
yourname 4 周之前
父節點
當前提交
8b56446b66
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/auth-module/src/routes/register.route.ts

+ 1 - 1
packages/auth-module/src/routes/register.route.ts

@@ -7,7 +7,7 @@ import { ErrorSchema } from '@d8d/shared-utils';
 import { AuthContext } from '@d8d/shared-types';
 import { UserSchema } from '@d8d/user-module';
 import { parseWithAwait } from '@d8d/shared-utils';
-import { RegisterSchema, TokenResponseSchema } from '../schemas';
+import { TokenResponseSchema } from '../schemas';
 
 const RegisterSchema = z.object({
   username: z.string().min(3).openapi({