A helper function to generate CRUUD functions that are returned from middleware modules or network adapters.
See middleware and network adapter code for usage.
A factory function that accepts a CRUUD method name
and returns a CRUUDConnectorFn
.
A network adapter that uses fetch
for network requests.
Configuration parameters: baseURL and headers.
import { createConnector, defaultNetworkAdapter }
const baseURL = "http://api.example.com"
const networkAdapter = defaultNetworkAdapter({ baseURL })
const connector = createConnector(networkAdapter)
connector("/movies/").read()
CRUUD Connector