using Next.js v15, app router, I've defined some routes with React FC's for viewing resource collections:
- /things
- /widgets
- /objects
Nice table views with filtering, etc.
Now, I want to add "download CSV" to some of those, and if possible I'd like to use the same route. I wonder if there's an existing pattern for doing this kind of thing with Next? I wonder if I need to replace page.js with route.js but really I want both, and "somehow" choose between them using the HTTP Accept header values.
Am I thinking wrongly for considering these two views of the same resource to appear at the same URL path?