apiadapter imitates the express.js api now for easier creation of api routes