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

This should interface with restify similar to the static file plugin #1

Open
argl opened this issue Apr 29, 2013 · 9 comments
Open

Comments

@argl
Copy link
Member

argl commented Apr 29, 2013

This should not start a restify server, but should be pluggable like the static file stuff of restify:

server.get(/\/couch\/?.*/, restify.proxyCouch({
  ... couch properties ...
}));

It would also be knorke to have couchdb endpoints white/blacklisted in some way

@jo
Copy link
Contributor

jo commented Apr 29, 2013

yeees, of course.

@jo
Copy link
Contributor

jo commented Apr 29, 2013

thats called plugins

@jo
Copy link
Contributor

jo commented Apr 29, 2013

maybe it should be called like this:

server.use(couch(options));

This way the plugin would not be limited to GET requests...

@jo
Copy link
Contributor

jo commented Apr 29, 2013

@argl
Copy link
Member Author

argl commented Apr 29, 2013

both ways could be possible, via use()... (all methods ossible) or via .get() (to only allow gets?

@jo
Copy link
Contributor

jo commented Apr 30, 2013

stuck because of restify/node-restify#289

@argl
Copy link
Member Author

argl commented Apr 30, 2013

Time to contribute to restify and implement it?

@jo
Copy link
Contributor

jo commented Apr 30, 2013

// hacky hack for the lack of `all`

@jo
Copy link
Contributor

jo commented Apr 30, 2013

kiek ma 5236af8

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

No branches or pull requests

2 participants