API routes and Frontend Actions
mjbernet3 opened this issue · comments
Matt Bernet commented
Add the Next.js API routes used to perform CRUD operations on the database and add the frontend actions to call those API routes from React components.
We will need to create a wrapper around the Next.js API route handlers to handle redundant operations like checking the session for protected routes. For frontend actions, an internal request function has already been created under src -> utils -> requests that we can use for HTTP requests.