add: added fetcher for swr
This commit is contained in:
parent
0c207bea3c
commit
2a6480e2f1
|
@ -0,0 +1,3 @@
|
||||||
|
import { stat } from "fs";
|
||||||
|
|
||||||
|
export const fetcher = (input: URL | RequestInfo, init?: RequestInit | undefined) => fetch(input, init).then(res => res.json().then(data => ({...data, status: res.status})));
|
Loading…
Reference in New Issue