GTBitsOfGood / national-npp

Portal to facilitate the collaboration between nonprofits and Hack4Impact chapters.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API routes and Frontend Actions

mjbernet3 opened this issue · comments

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.