Merge branch 'develop' of github.com:Budibase/budibase into develop
This commit is contained in:
commit
4b367f0480
|
@ -38,7 +38,7 @@
|
||||||
let data = new FormData()
|
let data = new FormData()
|
||||||
data.append("file", file)
|
data.append("file", file)
|
||||||
const res = await post(
|
const res = await post(
|
||||||
"/api/admin/configs/upload/settings/logoUrl",
|
"/api/global/configs/upload/settings/logoUrl",
|
||||||
data,
|
data,
|
||||||
{}
|
{}
|
||||||
)
|
)
|
||||||
|
|
|
@ -89,6 +89,26 @@ module RestModule {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
patch: {
|
||||||
|
displayName: "PATCH",
|
||||||
|
readable: true,
|
||||||
|
type: QueryTypes.FIELDS,
|
||||||
|
urlDisplay: true,
|
||||||
|
fields: {
|
||||||
|
path: {
|
||||||
|
type: DatasourceFieldTypes.STRING,
|
||||||
|
},
|
||||||
|
queryString: {
|
||||||
|
type: DatasourceFieldTypes.STRING,
|
||||||
|
},
|
||||||
|
headers: {
|
||||||
|
type: DatasourceFieldTypes.OBJECT,
|
||||||
|
},
|
||||||
|
requestBody: {
|
||||||
|
type: DatasourceFieldTypes.JSON,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
delete: {
|
delete: {
|
||||||
displayName: "DELETE",
|
displayName: "DELETE",
|
||||||
type: QueryTypes.FIELDS,
|
type: QueryTypes.FIELDS,
|
||||||
|
@ -175,6 +195,21 @@ module RestModule {
|
||||||
return await this.parseResponse(response)
|
return await this.parseResponse(response)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async patch({ path = "", queryString = "", headers = {}, json = {} }) {
|
||||||
|
this.headers = {
|
||||||
|
...this.config.defaultHeaders,
|
||||||
|
...headers,
|
||||||
|
}
|
||||||
|
|
||||||
|
const response = await fetch(this.config.url + path + queryString, {
|
||||||
|
method: "PATCH",
|
||||||
|
headers: this.headers,
|
||||||
|
body: JSON.stringify(json),
|
||||||
|
})
|
||||||
|
|
||||||
|
return await this.parseResponse(response)
|
||||||
|
}
|
||||||
|
|
||||||
async delete({ path = "", queryString = "", headers = {} }) {
|
async delete({ path = "", queryString = "", headers = {} }) {
|
||||||
this.headers = {
|
this.headers = {
|
||||||
...this.config.defaultHeaders,
|
...this.config.defaultHeaders,
|
||||||
|
|
Loading…
Reference in New Issue