Adding api.js file to define routes...