Skip to content

How the API routes should be consumed? #187

Answered by shadowtime2000
borsemayur2 asked this question in Q&A
Discussion options

You must be logged in to vote

Really depends. If it is data that is supposed to be available during SSR/SSG (useDeno) then you shouldn't be doing that. You should instead then be writing the code of the API route inside the page. If it is something that is specifically not meant to be prerendered, then yeah it's pretty much fine.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@borsemayur2
Comment options

@borsemayur2
Comment options

@shadowtime2000
Comment options

Answer selected by shadowtime2000
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