Skip to content

Commit

Permalink
feat: js lib expose axios client (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeDecMeetsMore authored Dec 10, 2024
1 parent 5cdee2d commit ae1d783
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions clients/javascript/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ export const NitteiUserClient = (
service: new NitteiServiceUserClient(axiosClient),
schedule: new NitteiScheduleUserClient(axiosClient),
user: new NitteiUserUserClient(axiosClient),
// Axios client exposed so that the user can use it
// - For adding interceptors
// - For making custom requests
axiosClient,
})
}

Expand Down Expand Up @@ -110,6 +114,10 @@ export const NitteiClient = async (
service: new NitteiServiceClient(axiosClient),
schedule: new NitteiScheduleClient(axiosClient),
health: new NitteiHealthClient(axiosClient),
// Axios client exposed so that the user can use it
// - For adding interceptors
// - For making custom requests
axiosClient,
})
}

Expand Down

0 comments on commit ae1d783

Please sign in to comment.