dasdasd
This commit is contained in:
@@ -2,6 +2,6 @@ import callAPI from "@/core/caller";
|
||||
|
||||
export async function applicantLogin(nationalCode: string) {
|
||||
return await callAPI
|
||||
.post(`/auth/applicant/login`, nationalCode)
|
||||
.post(`/auth/applicant/login`,{nationalCode})
|
||||
.then((res) => res.data);
|
||||
}
|
||||
|
||||
5
services/apis/center.api.ts
Normal file
5
services/apis/center.api.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import callAPI from "@/core/caller";
|
||||
|
||||
export async function getAllCenters() {
|
||||
return await callAPI.get(`/center/all`).then((res) => res.data);
|
||||
}
|
||||
8
services/apis/identity.api.ts
Normal file
8
services/apis/identity.api.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import callAPI from "@/core/caller";
|
||||
import { IdentityFormValues } from "@/core/types";
|
||||
|
||||
export async function sendIdentityForm(data: IdentityFormValues) {
|
||||
return await callAPI
|
||||
.post(`/form/identity/create`, { data })
|
||||
.then((res) => res.data);
|
||||
}
|
||||
Reference in New Issue
Block a user