How do I create a new endpoint and "controller" in the api?

I have to send the last 24hrs uplinks to a new view in react, but I dont know how to create the api endpoint neither how to connect on react. Can someone help me? There is any tutorial to this?

Thank You!