mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
Merge pull request #3598 from overleaf/ae-put-json
Add putJSON helper GitOrigin-RevId: 79d73ceb49836799b3215d9b10979da7cda982c4
This commit is contained in:
@@ -13,6 +13,10 @@ export function postJSON(path, options) {
|
|||||||
return fetchJSON(path, { ...options, method: 'POST' })
|
return fetchJSON(path, { ...options, method: 'POST' })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function putJSON(path, options) {
|
||||||
|
return fetchJSON(path, { ...options, method: 'PUT' })
|
||||||
|
}
|
||||||
|
|
||||||
export function deleteJSON(path, options) {
|
export function deleteJSON(path, options) {
|
||||||
return fetchJSON(path, { ...options, method: 'DELETE' })
|
return fetchJSON(path, { ...options, method: 'DELETE' })
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user