added get languages api to routes