Open argl opened 11 years ago
yeees, of course.
thats called plugins
maybe it should be called like this:
server.use(couch(options));
This way the plugin would not be limited to GET requests...
both ways could be possible, via use()... (all methods ossible) or via .get() (to only allow gets?
stuck because of https://github.com/mcavage/node-restify/issues/289
Time to contribute to restify and implement it?
// hacky hack for the lack of `all`
kiek ma 5236af8b52ed2e5115243781ffeaa018099754e9
This should not start a restify server, but should be pluggable like the static file stuff of restify:
It would also be knorke to have couchdb endpoints white/blacklisted in some way