improvement: multi organization possibility implemented for users (owners and staffs)
This commit is contained in:
@@ -27,6 +27,17 @@ export const authApi = {
|
||||
return response.data;
|
||||
},
|
||||
|
||||
// Create organization for current user
|
||||
createOrganization: async (data: {
|
||||
organizationName: string;
|
||||
organizationEmail: string;
|
||||
organizationType: 'CLINIC' | 'LAB';
|
||||
planName?: string;
|
||||
}): Promise<any> => {
|
||||
const response = await apiClient.post('/auth/organizations', data);
|
||||
return response.data;
|
||||
},
|
||||
|
||||
// Logout
|
||||
logout: async (): Promise<void> => {
|
||||
await apiClient.post('/auth/logout');
|
||||
|
||||
Reference in New Issue
Block a user