Added new logic in app.js and other apis in other folders.