chore: add createclientbyadmin
This commit is contained in:
@@ -427,13 +427,13 @@ export const createClientByAdmin = async (data: {
|
||||
telephone: string;
|
||||
}) => {
|
||||
const { data: res } = await apiClient.post(
|
||||
`https://uber-stup.club/api/v1/auth/register`,
|
||||
`${V2}/admin/protected/clients`,
|
||||
data,
|
||||
);
|
||||
return {
|
||||
success: true,
|
||||
message: res.message || "Client créé",
|
||||
user: res.user,
|
||||
client: res.client,
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user