-
Notifications
You must be signed in to change notification settings - Fork 72
05. Routes
Joseph Alves edited this page Mar 2, 2015
·
1 revision
Routing begins in the file server/app/index.js. Here we have a registered route of /api
that uses a sub-router from server/app/routes/index.js. This practice of creating new express routers is recommended to isolate your routes by concern.
Take a look at the tutorial
routes for example. For clarification, the videos data is returned from a GET
to /api/tutorial/videos
.