Skip to content

Commit

Permalink
Export createRouter and createSofa methods (#1459)
Browse files Browse the repository at this point in the history
* Chore: Export createRouter and createSofa methods

* Add changeset
  • Loading branch information
ernestognw authored Dec 16, 2024
1 parent a864517 commit 5442709
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/mighty-mugs-remain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"sofa-api": patch
---

Export `createSofa` and `createRoute` for custom intermediate configuration
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ export { OpenAPI } from './open-api/index.js';
export function useSofa(config: SofaConfig) {
return createRouter(createSofa(config));
}

export { createRouter, createSofa };

0 comments on commit 5442709

Please sign in to comment.