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

Manner with native schema #36

Open
bredele opened this issue Jan 22, 2018 · 0 comments
Open

Manner with native schema #36

bredele opened this issue Jan 22, 2018 · 0 comments

Comments

@bredele
Copy link
Contributor

bredele commented Jan 22, 2018

Manner could define as many nested routes as wanted and could contain schema. Here's an example:

{
  get: {
    '/': {
      route: () => {},
      data: {
        name: {
          required: true
        }
      },
      '/hello': {
      
      }
    }
  }
}

if a path is an object it contains schema and/or sub routes. If it's a function it is a shortcut for the route prop.

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