router.js

This is the router.js file which routes depending on the request.