mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-04 01:36:51 -05:00
1707a2555b
Refactor "Copy Project" modal GitOrigin-RevId: b6039d57c29c04a7cd20dd4a2ab5216d485c05ed
9 lines
221 B
JavaScript
9 lines
221 B
JavaScript
import { postJSON } from '../../../infrastructure/fetch-json'
|
|
|
|
export function cloneProject(projectId, cloneName) {
|
|
return postJSON(`/project/${projectId}/clone`, {
|
|
body: {
|
|
projectName: cloneName
|
|
}
|
|
})
|
|
}
|