diff --git a/src/constants/queryManagement.ts b/src/constants/queryManagement.ts new file mode 100644 index 0000000..6b87398 --- /dev/null +++ b/src/constants/queryManagement.ts @@ -0,0 +1,17 @@ +import { fetchMyPageWithSSR, sendEmailVerification } from '@apis/mypage'; + +const QUERY_MANAGEMENT = { + mypage: { + queryKey: 'mypage', + queryFn: fetchMyPageWithSSR, + }, +}; + +const MUTATION_MANAGEMENT = { + email: { + mutateKey: 'sendEmail', + mutateFn: (email: string) => sendEmailVerification(email), + }, +}; + +export { QUERY_MANAGEMENT, MUTATION_MANAGEMENT };