API:
Add: - service/api-client/ : api route setting - service/api-config.ts : api base url Profil & User Fix: - auth logic - crate profile ### No Issue
This commit is contained in:
8
service/api-client/api-profile.ts
Normal file
8
service/api-client/api-profile.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { apiConfig } from "../api-config";
|
||||
|
||||
export async function apiCreateProfile(data: any) {
|
||||
const response = await apiConfig.post(`/mobile/profile`, {
|
||||
data: data,
|
||||
});
|
||||
return response;
|
||||
}
|
||||
7
service/api-client/api-user.ts
Normal file
7
service/api-client/api-user.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { apiConfig } from "../api-config";
|
||||
|
||||
|
||||
export async function apiUser(id: string) {
|
||||
const response = await apiConfig.get(`/user/${id}`);
|
||||
return response.data;
|
||||
}
|
||||
Reference in New Issue
Block a user