Skip to content

Commit

Permalink
feat: add destroy method
Browse files Browse the repository at this point in the history
  • Loading branch information
halivert committed Aug 23, 2023
1 parent 0c3d358 commit 65f273b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/API/CreditCard/v1/CreditCardController.php
Expand Up @@ -67,8 +67,10 @@ public function update(
/**
* Remove the specified resource from storage.
*/
public function destroy(CreditCard $creditCard): void
public function destroy(CreditCard $creditCard): JsonResponse
{
//
$creditCard->delete();

return response()->json(null, Response::HTTP_NO_CONTENT);
}
}

0 comments on commit 65f273b

Please sign in to comment.