From b90f796f2ebedccb4af9ccfd550913e4e7e54cab Mon Sep 17 00:00:00 2001 From: benal01 Date: Thu, 6 Mar 2025 11:10:08 -0500 Subject: changed delete method to use DELETE instead of PUT --- ufund-ui/src/app/services/cupboard.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ufund-ui/src/app/services/cupboard.service.ts b/ufund-ui/src/app/services/cupboard.service.ts index c123841..5a92b0a 100644 --- a/ufund-ui/src/app/services/cupboard.service.ts +++ b/ufund-ui/src/app/services/cupboard.service.ts @@ -39,6 +39,6 @@ export class CupboardService { } deleteNeed(id: number): Observable { - return this.http.put(`${this.url}/${id}`, this.httpOptions) + return this.http.delete(`${this.url}/${id}`, this.httpOptions) } } -- cgit v1.2.3