making main app the routes API