|
@@ -149,6 +149,10 @@ const createProject = baseApi<{ name: string }, {}>('POST', pathParams => {
|
|
|
return `/api/projects`;
|
|
return `/api/projects`;
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
+const deleteProject = baseApi<{}, { id: number }>('DELETE', pathParams => {
|
|
|
|
|
+ return `/api/projects/${pathParams.id}`;
|
|
|
|
|
+});
|
|
|
|
|
+
|
|
|
// Bundle export to allow default api import (api.<method> is more readable)
|
|
// Bundle export to allow default api import (api.<method> is more readable)
|
|
|
export default {
|
|
export default {
|
|
|
checkAuth,
|
|
checkAuth,
|
|
@@ -171,5 +175,6 @@ export default {
|
|
|
getBranches,
|
|
getBranches,
|
|
|
getBranchContents,
|
|
getBranchContents,
|
|
|
getProjects,
|
|
getProjects,
|
|
|
- createProject
|
|
|
|
|
|
|
+ createProject,
|
|
|
|
|
+ deleteProject
|
|
|
}
|
|
}
|