mirror of
https://github.com/kmc7468/arkvault.git
synced 2026-02-04 08:06:56 +00:00
/api/auth/changePassword, /api/user, /api/user/changeNickname Endpoint 구현
This commit is contained in:
12
src/lib/server/schemas/user.ts
Normal file
12
src/lib/server/schemas/user.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { z } from "zod";
|
||||
|
||||
export const userInfoResponse = z.object({
|
||||
email: z.string().email().nonempty(),
|
||||
nickname: z.string().nonempty(),
|
||||
});
|
||||
export type UserInfoResponse = z.infer<typeof userInfoResponse>;
|
||||
|
||||
export const changeNicknameRequest = z.object({
|
||||
newNickname: z.string().min(2).max(8),
|
||||
});
|
||||
export type ChangeNicknameRequest = z.infer<typeof changeNicknameRequest>;
|
||||
Reference in New Issue
Block a user