added put shortcut
This commit is contained in:
@@ -183,6 +183,11 @@ export const api = {
|
|||||||
return await this.send(options);
|
return await this.send(options);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
put: async function (options: ApiOptions): Promise<ApiResponse> {
|
||||||
|
options.method = "PUT";
|
||||||
|
return await this.send(options);
|
||||||
|
},
|
||||||
|
|
||||||
delete: async function (options: ApiOptions): Promise<ApiResponse> {
|
delete: async function (options: ApiOptions): Promise<ApiResponse> {
|
||||||
options.method = "DELETE";
|
options.method = "DELETE";
|
||||||
return await this.send(options);
|
return await this.send(options);
|
||||||
|
|||||||
Reference in New Issue
Block a user