mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 07:37:11 +01:00
Updated hooks. Changed url, host to path, hostname.
This commit is contained in:
parent
25a9c011b3
commit
543674c7f2
146 changed files with 23348 additions and 2533 deletions
|
|
@ -42,18 +42,18 @@ export async function request(
|
|||
});
|
||||
}
|
||||
|
||||
export async function httpGet(url: string, params: object = {}, headers: object = {}) {
|
||||
return request('GET', buildUrl(url, params), undefined, headers);
|
||||
export async function httpGet(path: string, params: object = {}, headers: object = {}) {
|
||||
return request('GET', buildUrl(path, params), undefined, headers);
|
||||
}
|
||||
|
||||
export async function httpDelete(url: string, params: object = {}, headers: object = {}) {
|
||||
return request('DELETE', buildUrl(url, params), undefined, headers);
|
||||
export async function httpDelete(path: string, params: object = {}, headers: object = {}) {
|
||||
return request('DELETE', buildUrl(path, params), undefined, headers);
|
||||
}
|
||||
|
||||
export async function httpPost(url: string, params: object = {}, headers: object = {}) {
|
||||
return request('POST', url, JSON.stringify(params), headers);
|
||||
export async function httpPost(path: string, params: object = {}, headers: object = {}) {
|
||||
return request('POST', path, JSON.stringify(params), headers);
|
||||
}
|
||||
|
||||
export async function httpPut(url: string, params: object = {}, headers: object = {}) {
|
||||
return request('PUT', url, JSON.stringify(params), headers);
|
||||
export async function httpPut(path: string, params: object = {}, headers: object = {}) {
|
||||
return request('PUT', path, JSON.stringify(params), headers);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue