project list
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user