Course lesson

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

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

Duration
3 min
Access
Free
Transcript
Retained from source evidence

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.