milestone --- moved get api to router file: