mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-10-14 10:51:28 +08:00

* feat: all dashboard is migrated to useQuery and action is removed * chore: delete functionality is updated --------- Co-authored-by: Palash Gupta <palashgdev@gmail.com>
9 lines
274 B
TypeScript
9 lines
274 B
TypeScript
import axios from 'api';
|
|
import { ApiResponse } from 'types/api';
|
|
import { Dashboard } from 'types/api/dashboard/getAll';
|
|
|
|
export const getAllDashboardList = (): Promise<Dashboard[]> =>
|
|
axios
|
|
.get<ApiResponse<Dashboard[]>>('/dashboards')
|
|
.then((res) => res.data.data);
|