Skip to content

Commit

Permalink
docs: correct readme code example
Browse files Browse the repository at this point in the history
  • Loading branch information
acherkashin authored Dec 19, 2023
1 parent 2a60bac commit 9e2abf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ The major and minor version of this library is mapped to the version of the Gite
```ts
import { giteaApi } from 'gitea-js';

const api = new giteaApi('https://try.gitea.com/', {
const api = giteaApi('https://try.gitea.com/', {
token: 'access-token', // generate one at https://gitea.example.com/user/settings/applications
});

Expand All @@ -42,7 +42,7 @@ console.log(repo);
const { giteaApi } = require('gitea-js');
const fetch = require('cross-fetch'); // You have to use a fetch compatible polyfill like cross-fetch for Node.JS

const api = new giteaApi('https://try.gitea.com/', {
const api = giteaApi('https://try.gitea.com/', {
token: 'access-token', // generate one at https://gitea.example.com/user/settings/applications
customFetch: fetch,
});
Expand Down

0 comments on commit 9e2abf4

Please sign in to comment.