mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-10-13 13:58:05 +00:00
@@ -18,12 +18,12 @@ export async function create(filename, content) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function patch(gistId, filename, content) {
|
export async function patch(gistId, filename, content) {
|
||||||
const { deleted } = await axios.patch(`${baseUrl}/gists/${gistId}`, {
|
const { data } = await axios.patch(`${baseUrl}/gists/${gistId}`, {
|
||||||
filename,
|
filename,
|
||||||
content,
|
content,
|
||||||
});
|
});
|
||||||
|
|
||||||
return deleted;
|
return data.deleted;
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function del(gistId) {
|
export async function del(gistId) {
|
||||||
|
Reference in New Issue
Block a user