diff --git a/resources/js/helpers/api.ts b/resources/js/helpers/api.ts index ec4e6b7..e1b7bf0 100644 --- a/resources/js/helpers/api.ts +++ b/resources/js/helpers/api.ts @@ -183,6 +183,11 @@ export const api = { return await this.send(options); }, + put: async function (options: ApiOptions): Promise { + options.method = "PUT"; + return await this.send(options); + }, + delete: async function (options: ApiOptions): Promise { options.method = "DELETE"; return await this.send(options);