Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend controller lookup to subfolders #35

Open
tracend opened this issue May 11, 2013 · 0 comments
Open

Extend controller lookup to subfolders #35

tracend opened this issue May 11, 2013 · 0 comments

Comments

@tracend
Copy link
Member

tracend commented May 11, 2013

Although having a one level deep controller stack is a clean convention, and a limitation that helps for a cleaner route table, there are cases (especially in plugins) where some controller needs to be nested.

For example, the [twitter] module may have links that belong under the api namespace. So a request to the twitter api may look like:

/api/twitter/[request/uri]

The controller that accepts those requests needs to live either in an api folder or be named api-twitter.js.

Either convention should have the same effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant