#Route and page on same path with app dir
7 messages · Page 1 of 1 (latest)
For example, I’d like to do be able to do a POST to /notes/[id], but also render a page on the same URL
You can't afaik
Server actions(still not production ready) will probably be a good usecase for this tho!
thats not possible according to the docs
you cannot have page.tsx and route.ts on the same path
you can just create a new folder and contain the route.ts