#Use (local) API in custom component

1 messages · Page 1 of 1 (latest)

broken cave
#

I have added an API endpoint that publishes documents in a collection based on some parameters. Now I would like to reuse this endpoint in the UI so I've added a custom client component to my UI but how can I access the (local) API?
I don't have a req object in my custom component.