overleaf/services/web/frontend/js/features/clone-project-modal/utils/api.js
Alf Eaton 1707a2555b Merge pull request #3705 from overleaf/ae-refactor-clone-modal
Refactor "Copy Project" modal

GitOrigin-RevId: b6039d57c29c04a7cd20dd4a2ab5216d485c05ed
2021-03-06 03:04:39 +00:00

9 lines
221 B
JavaScript

import { postJSON } from '../../../infrastructure/fetch-json'
export function cloneProject(projectId, cloneName) {
return postJSON(`/project/${projectId}/clone`, {
body: {
projectName: cloneName
}
})
}