Skip to content

Commit

Permalink
feat: added dummy (fetch local file) event api
Browse files Browse the repository at this point in the history
  • Loading branch information
khavinshankar committed Jan 7, 2024
1 parent a58a1ae commit be3eb8a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Redux/api.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -515,6 +516,13 @@ const routes = {
TRes: Type<PaginatedResponse<DailyRoundsModel>>(),
},

getEvents: {
path: "/events.json",
method: "GET",
noAuth: true,
TRes: Type<PaginatedResponse<EventGeneric>>(),
},

getDailyReport: {
path: "/api/v1/consultation/{consultationId}/daily_rounds/{id}/",
},
Expand Down

0 comments on commit be3eb8a

Please sign in to comment.