Skip to content

Sharing endpoints between different createApi services #1486

Answered by phryneas
joel-stewart asked this question in Q&A
Discussion options

You must be logged in to vote

The answer is the same one as always: ^^

Use one api.

Make an empty api one in your main file, use that in all your applications. Then use our documented code splitting approach to have multiple extra files for your endpoints.

Only the endpoints in these files you import in your final apps will make it into those apps.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@joel-stewart
Comment options

Answer selected by joel-stewart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants