Skip to content

Extend controller lookup to subfolders #35

Open

Description

@tracend

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions