Created
June 17, 2020 15:47
-
-
Save Andy-set-studio/59caf21e1d2a562844ccf876e8d2db61 to your computer and use it in GitHub Desktop.
Revisions
-
Andy-set-studio created this gist
Jun 17, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ const fetch = require('node-fetch'); module.exports = async () => { try { const res = await fetch( 'https://11ty-from-scratch-content-feeds.piccalil.li/media.json' ); const {items} = await res.json(); return items; } catch (ex) { return []; } };