repos / starfx

supercharged async flow control library.
git clone https://github.com/neurosnap/starfx.git

commit
aa996a1
parent
6ae19f0
author
Eric Bower
date
2023-11-23 02:47:11 +0000 UTC
docs: readme
1 files changed,  +1, -0
M README.md
+1, -0
1@@ -67,6 +67,7 @@ const api = createApi();
2 // composition of handy middleware for createApi to function
3 api.use(mdw.api());
4 api.use(api.routes());
5+// calls `window.fetch` with `ctx.request` and sets to `ctx.response`
6 api.use(mdw.fetch({ baseUrl: "https://jsonplaceholder.typicode.com" }));
7 
8 // automatically cache results in datastore