This commit is contained in:
chamikaJ
2025-04-17 18:28:54 +05:30
parent f583291d8a
commit 8825b0410a
2837 changed files with 241385 additions and 127578 deletions

View File

@@ -0,0 +1,16 @@
import { API_BASE_URL } from "@/shared/constants";
import apiClient from "../api-client";
import { IServerResponse } from "@/types/common.types";
import { ISubTask } from "@/types/tasks/subTask.types";
const root = `${API_BASE_URL}/sub-tasks`;
export const subTasksApiService = {
getSubTasks: async (parentTaskId: string): Promise<IServerResponse<ISubTask[]>> => {
const response = await apiClient.get(`${root}/${parentTaskId}`);
return response.data;
},
};