Infosys interview question

How to connect frontend and backend ?