add api routes to appdata/routes.php