Single nested admin route catch-all for all pages?
How can I setup my file-based routing to be something like:
pages
index.js
about.js
contact.js
admin.js
And then access the url /admin or /about/admin or /contact/admin ?
Ideally I don't want to have:
pages
home
index.js
admin.js
about
index.js
admin.js
contact
index.js
admin.js
1 Reply
Edit: maybe its just a catch all route?
pages
index.js
about.js
contact.js
[...admin].js