How can I create a custome endpoint with Strapi v4

Hi there,

I am new to web development and new to Strapi and I am trying to develop a simple personal project with Strapi and When creating the Strapi project, the script used the last v4 of Strapi. And honestly, I am running into lot of trouble as soon as I want to customize anything because all the doc and tuto I find on internet is designed for the previous version.

Concretely, I would like to create a new endpoint that will return the records specific to the connected user. I.e. filtering the record on the field. I have no clue how to do that and I cannot find any explanation online. Help wpuld be welcome!