feat: create kyc page with api
This commit is contained in:
14
src/features/kyc/api/kycApi.ts
Normal file
14
src/features/kyc/api/kycApi.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { api } from '@shared/api/base'
|
||||
|
||||
export interface KycResponse {
|
||||
status: boolean
|
||||
error: string
|
||||
link: string
|
||||
user_token: string
|
||||
client_user_token: string
|
||||
qr_code: string
|
||||
}
|
||||
|
||||
export function kycCreate(): Promise<KycResponse> {
|
||||
return api.post<KycResponse>('/kyc/create', {})
|
||||
}
|
||||
Reference in New Issue
Block a user