Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel authored Mar 8, 2024
1 parent 227a222 commit 9f63c73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Using this **simple custom code**:
```ts
export default async function fetchData(nango: NangoSync) {
// Fetch issues from GitHub.
const res = await nango.get({ '/repos/NangoHQ/interactive-demo/issues' });
const res = await nango.get({ endpoint: '/repos/NangoHQ/interactive-demo/issues' });

// Map issues to your preferred schema.
const issues = res.data.map(issue => ({ id, title, url }));
Expand Down

0 comments on commit 9f63c73

Please sign in to comment.