In NextJS for example, we can have routes defined with file paths,
/api/event/index.js
/api/event/[id].js
accessed in the url respectively as,
/api/event
/api/event/123
I can't figure out what the index route Rust file should be called. I tried index.rs and mod.rs but in both cases I had to add that to the URL. I want to be able to define index.rs but omit it in the url.
In NextJS for example, we can have routes defined with file paths,
accessed in the url respectively as,
I can't figure out what the index route Rust file should be called. I tried
index.rs
andmod.rs
but in both cases I had to add that to the URL. I want to be able to define index.rs but omit it in the url.Thank you