Projects in Web IDE have a file named neo-app.json. This file contains a listing of routes where resources needed to run the app are located. The code I provided should be included in this file. For apps to run in Web IDE you need to also have destinations defined in the hana cloud cockpit. So in my case I have a destination named GM4_Virtual. You would need to replace this value with the name of a destination pointing to your backend which most likely involves the hana cloud connector.
If you are new to Web IDE then I suggest you visit
Regards,
Jamie
SAP - Technology RIG