portfolio/lib/fetcher.js

3 lines
91 B
JavaScript

const fetcher = (...args) => fetch(...args).then(res => res.json())
export default fetcher