fix(aihr): scope mobile home metrics by identity
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import type { RoleHome, RoleKey } from '@/types/api';
|
||||
import { apiRequest } from './api';
|
||||
import { isLoggedIn } from './auth';
|
||||
|
||||
export const getMobileHome = (role: RoleKey) =>
|
||||
apiRequest<RoleHome>({
|
||||
url: `/api/aihr/mobile/home/${role}`,
|
||||
method: 'GET',
|
||||
auth: false,
|
||||
auth: isLoggedIn(),
|
||||
timeout: 15000
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user