change route API to main app