Next.js Discord

Discord Forum

dynamic folder route 404

Answered
West African Lion posted this in #help-forum
Open in Discord
West African LionOP
const handleUpdate = async (nextTransaction: ITransaction) => {
    try {
      await fetch(`http://localhost:3000/api/transaction/${id}/update`, {
        ...
      }


My directory structure is this:
/api/transaction/[id]/update.ts
Answered by West African Lion
just api routes. Figured it out. Had to just restart the server for it to register... 🤷‍♂️
View full answer

2 Replies

West African LionOP
just api routes. Figured it out. Had to just restart the server for it to register... 🤷‍♂️
Answer