Move `atm-api.js` to `routes.js`