Custom page for cpt

Good guys, I would like to know how I can make a handler that allows me to display a customized component to show all the details of a cpt. My problem is how I will pass the id of my cpt to later have access to it in my custom component where I will do a fetch to the api with that id.
thank you

Hi @hugsaf2132

Do you have a repo of your code that we can take a look at?

Please look at this post that details the kind of information to include in your query to help us to best help you: About the 🤗 Dev Talk & Questions category