#Directus Instance to access endpoints in extensions

2 messages · Page 1 of 1 (latest)

fading scarab
#

I want to use the Directus instance
import { Directus } from '@directus/sdk'; directusInstance = new Directus(url);

something like
// Something like below directusInstance.extensions.endpoint('/getData')

or is there anyother way to achieve this?
please do let me know the correct approach for doing this.

dusty spruce
#

directusInstance.transport.post("/endpointurl")