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

secret methods #25

Open
bredele opened this issue Aug 15, 2017 · 0 comments
Open

secret methods #25

bredele opened this issue Aug 15, 2017 · 0 comments

Comments

@bredele
Copy link
Contributor

bredele commented Aug 15, 2017

It would be able to define routes that are only available through the programmatic API (not HTTP)

service({
  options: {
    get: ['/hellosecet']
  },
  get: {
    '/hello': () => 'hello',
    '/hellosecret': () => 'secret'
  }
})

At any time we could make a method available with HTTP (useful for testing or simply for consistency). Let's try to find an elegant API to enable this feature (maybe through HTTP options - let's remember that the OPTIONS method will be automatically generated from the methods available)

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