Changed api routes for iOS. Also formatting