Skip to content

Cleaification /api-routes, .data.ts vs routeData() #194

Answered by ryansolid
benbender asked this question in Q&A
Discussion options

You must be logged in to vote

.data.ts vs routeData are the same thing. Just one is in a separate file and the other is inlined. I imagine final docs won't even mention .data.ts as it is more of a mechanical thing. Might consider removing it.

API routes are a bit different. They are designed for creating APIs, mostly for external consumption. For the most part you can just use routeData in SolidStart and never write an API. But if you need an API for another service this is a way you can do it.

Docs are coming. They are actually more of the bottleneck for the release than anything. They take a lot of time (more than the development) and as soon as they are ready we will announce beta release.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by benbender
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
Converted from issue

This discussion was converted from issue #191 on July 19, 2022 09:23.