When creating new adonis project you will have a single
/start/routes.js file in which you could have all your Routes. But I think this is not optimized way to handle Routes.
Consider situation when you will create dozens of different routes: users, posts, links, customers, etc, ect. Even using
will not solve the problem.
Solution is simple -> create
routes folder with
index.js file in it:
with required(“…”) in
Example of addresses route:
On each route creating you will create separate file. Simple and effective 😉