From be3eb8a3e3bec72f414bb1a48aa8aec2677d9b85 Mon Sep 17 00:00:00 2001 From: khavinshankar Date: Sun, 7 Jan 2024 13:03:52 +0530 Subject: [PATCH] feat: added dummy (fetch local file) event api --- src/Redux/api.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Redux/api.tsx b/src/Redux/api.tsx index 2b8d4f8f51b..fd529bf452e 100644 --- a/src/Redux/api.tsx +++ b/src/Redux/api.tsx @@ -75,6 +75,7 @@ import { import { IComment, IResource } from "../Components/Resource/models"; import { IShift } from "../Components/Shifting/models"; import { HCXPolicyModel } from "../Components/HCX/models"; +import { EventGeneric } from "../Components/Facility/ConsultationDetails/Events/types"; /** * A fake function that returns an empty object casted to type T @@ -515,6 +516,13 @@ const routes = { TRes: Type>(), }, + getEvents: { + path: "/events.json", + method: "GET", + noAuth: true, + TRes: Type>(), + }, + getDailyReport: { path: "/api/v1/consultation/{consultationId}/daily_rounds/{id}/", },