Support for multi-level/nested folder structure instead of single-level grouping? #92
Unanswered
Omid-Zahed
asked this question in
Q&A
Replies: 1 comment 1 reply
|
Yes, the first segment is always considered the root resource of the API route. In your case, what you are looking for is what is called multi-application support in Nimbus. So that the admin or any other application is defined separately with its own configuration. https://github.com/sunchayn/nimbus/tree/base/wiki/user-guide#multi-application-support Let me know if that answers your use case sufficiently. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi there!
I have a question about the folder structure for organizing routes. I noticed that Nimbus currently detects and groups routes into multiple folders (e.g.,
auth,admin,api), which is really helpful. However, it seems like it only supports one level of grouping.For example, with routes like these:
auth/loginauth/registeradmin/users/listadmin/users/createadmin/products/listadmin/products/createCurrent behavior:
authand puts bothloginandregisterinside it ✅adminand puts all four routes inside it (without distinguishing betweenusersandproducts) ❌My question is: Is there any plan to support multi-level or tree-like nested folders? So that routes would be organized like this:
📁 auth
└── login
└── register
📁 admin
└── 📁 users
│ └── list
│ └── create
└── 📁 products
└── list
└── create
This would make navigation much cleaner for projects with many endpoints under the same prefix (like admin panels, versioned APIs, etc.).
All reactions