How to use the endpoint in your application depends on whether you want to call the endpoint on the server or on the client.
To call the endpoint from a server component you need to create an api caller and call the endpoint like so:
To call the endpoint in the frontend you can import the apiClient
and use the endpoint like so: