Create api.js

routes file for api