Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
identical urls page vs api - Theo's Typesafe Cult
TTC
Theo's Typesafe Cult
•
3y ago
•
14 replies
Perfect
identical urls page vs api
Noob question
-
If my site has a page at
/posts
, but my api also has a
/posts route
. Is it possible to differentiate
? Should I prefix all my api routes like
/api
/posts for example
?
Theo's Typesafe Cult
Join
26,564
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Revalidatepath type undefined vs page
TTC
Theo's Typesafe Cult / questions
2y ago
SSG vs static html page
TTC
Theo's Typesafe Cult / questions
3y ago
When to use "src/page/api/doStuff.ts" vs "src/server/api/routers/routerThatDoesStuff.ts"
TTC
Theo's Typesafe Cult / questions
3y ago
tRPC vs nextJS API routes
TTC
Theo's Typesafe Cult / questions
4y ago