34 lines
1.3 KiB
JavaScript
34 lines
1.3 KiB
JavaScript
import { http } from '@/services/api/http'
|
|
import { endpoints } from '@/services/api/endpoints'
|
|
|
|
export const apiLogin = (payload) => http.post(endpoints.login, payload)
|
|
|
|
export const apiLoginWithCode = (payload) => http.post(endpoints.loginWithCode2Step, payload)
|
|
|
|
export const apiRegister = (payload) => http.post(endpoints.register, payload)
|
|
|
|
export const apiVerifyCode = (payload) => http.post(endpoints.verifyCode, payload)
|
|
|
|
export const apiResendVerificationCode = (payload) =>
|
|
http.post(endpoints.resendVerificationCodeForRegister, payload)
|
|
|
|
export const apiForgotPassword = (payload) => http.post(endpoints.forgotPassword, payload)
|
|
|
|
export const apiVerifyForgotPasswordCode = (payload) =>
|
|
http.post(endpoints.verifyForgotPasswordCode, payload)
|
|
|
|
export const apiResetPassword = (payload) => http.post(endpoints.resetPassword, payload)
|
|
|
|
export const apiLogout = () => http.post(endpoints.logout)
|
|
|
|
export const apiGetProfile = () => http.get(endpoints.getProfile)
|
|
|
|
export const apiCompleteProfile = (payload) => http.post(endpoints.completeProfile, payload)
|
|
|
|
export const apiUpdateProfile = (payload) => http.put(endpoints.updateProfile, payload)
|
|
|
|
export const apiGetRegistrationQuestionVideo = () =>
|
|
http.get(endpoints.getRegistrationQuestionVideo)
|
|
|
|
export const apiUploadTemporary = (formData) => http.post(endpoints.uploadMediaTemporary, formData)
|