diff --git a/services/response.js b/services/response.js index c42622b..4a375c0 100644 --- a/services/response.js +++ b/services/response.js @@ -125,4 +125,14 @@ export const request = { }), getRepresentationInfo: (uuid) => api.get(`api/v1/representation/${uuid}`, { requireAuth: true }), + getRepresentationDashboardMonthly: (uuid, year, month) => + api.get(`api/v1/representation/${uuid}/dashboard/monthly`, { + params: { year, month }, + requireAuth: true, + }), + getRepresentationDashboardYearly: (uuid, year) => + api.get(`api/v1/representation/${uuid}/dashboard/yearly`, { + params: { year }, + requireAuth: true, + }), };