Skip to content

Commit

Permalink
chore(swagger-zodios): export endpoints too
Browse files Browse the repository at this point in the history
  • Loading branch information
b6pzeusbc54tvhw5jgpyw8pwz2x6gs committed Dec 25, 2023
1 parent aae446a commit 08aa937
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/swagger-zodios/src/components/Definitions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function Template({
}: TemplateProps): ReactNode {
return (
<>
{`const endpoints = makeApi([${definitions.join(',')}])`}
{`export const endpoints = makeApi([${definitions.join(',')}])`}

Check warning on line 30 in packages/swagger-zodios/src/components/Definitions.tsx

View check run for this annotation

Codecov / codecov/patch

packages/swagger-zodios/src/components/Definitions.tsx#L30

Added line #L30 was not covered by tests
{baseURL && `export const ${name} = new Zodios('${baseURL}', endpoints)`}
{!baseURL && `export const ${name} = new Zodios(endpoints)`}
{`export default ${name}`}
Expand Down

0 comments on commit 08aa937

Please sign in to comment.