added routes for api