setup api routes and add model data