Refactor Next.js API Route for Deleting a Deposit Into a Server Action

Share this video with your friends

Send Tweet

As we have been doing, refactor the deposit api route handler that handles deleting a deposit into a server action.

This video has been sped up. If you want to see the code checkout to the 'solution' branch with git checkout solution and look in the 'final' folder in src/app/actions for the delete deposit action.