Send a request to an endpoint definition with type safe parameters.
This can safely be used in frontend or backend code.
import {fetchEndpoint} from '@rest-vir/define-service';const {data, response} = await fetchEndpoint(myService.endpoints['/my-endpoint']); Copy
import {fetchEndpoint} from '@rest-vir/define-service';const {data, response} = await fetchEndpoint(myService.endpoints['/my-endpoint']);
@rest-vir/define-service
Send a request to an endpoint definition with type safe parameters.
This can safely be used in frontend or backend code.