14 lines
272 B
JavaScript
14 lines
272 B
JavaScript
import EleventyFetch from '@11ty/eleventy-fetch';
|
|
|
|
export default async function () {
|
|
let url = 'https://api.github.com/users/madrilene/repos';
|
|
|
|
// returning promise
|
|
|
|
let data = await EleventyFetch(url, {
|
|
duration: '1d',
|
|
type: 'json'
|
|
});
|
|
|
|
return data;
|
|
}
|