fix api routes for items