project list

This commit is contained in:
hamid zarghami
2026-07-11 10:19:39 +03:30
parent b0737ea6ad
commit 47691a649f
11 changed files with 485 additions and 166 deletions
@@ -1,6 +1,13 @@
import axios from "../../../../config/axios";
import { CreateProjectType } from "../types/ProjectTypes";
export const getProjectsByWorkspace = async (workspaceId: string) => {
const { data } = await axios.get(
`/task-manager/projects/user/workspace/${workspaceId}`,
);
return data;
};
export const createProject = async (params: CreateProjectType) => {
const { data } = await axios.post(`/task-manager/projects`, params);
return data;