added routes for rest api