Skip to content
Kevin Hannigan edited this page Feb 27, 2017 · 1 revision

The app/api folder holds the api routes for the application. The files in this folder allow the frontend application to communicate with the server. The different files are typically split up based on the main model the routes are related to. For the most part, these endpoints are simple CRUD operations, authenticated by passport.

This folder includes a file at app/api/api.js. This file is a sort of "index" file which ease the addition of new api files. The server.js file calls the api.js file, which in turn looks at the files in the api folder and sets up the routes for each one.

Clone this wiki locally