We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a40474a commit ca4115eCopy full SHA for ca4115e
client/services/api.ts
@@ -227,6 +227,20 @@ export const tasksApi = {
227
} catch (error) { throw handleApiError(error); }
228
},
229
230
+ getActive: async (): Promise<Task[]> => {
231
+ try {
232
+ const res = await api.get("/tasks/active");
233
+ return res.data;
234
+ } catch (error) { throw handleApiError(error); }
235
+ },
236
+
237
+ getCompleted: async (): Promise<Task[]> => {
238
239
+ const res = await api.get("/tasks/completed");
240
241
242
243
244
getClientTasks: async (): Promise<Task[]> => {
245
try {
246
const res = await api.get("/tasks/client-tasks");
0 commit comments