Skip to content

Commit

Permalink
expose createApiClient method in api package to public
Browse files Browse the repository at this point in the history
  • Loading branch information
Onatcer committed Aug 25, 2024
1 parent 8ce1edc commit c7aab00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/npm-publish-api.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Publish API package to NPM
on:
workflow_dispatch
push
jobs:
build:
runs-on: ubuntu-latest
Expand Down
4 changes: 3 additions & 1 deletion resources/js/packages/api/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,6 @@ export type MyMemberships = ZodiosResponseByAlias<

export type MyMembership = MyMemberships[0];

export const api = createApiClient('/api', { validate: 'none' });
const api = createApiClient('/api', { validate: 'none' });

export { createApiClient, api };

0 comments on commit c7aab00

Please sign in to comment.