changed routes of rest api