How to send backend data to the frontend?