Skip to content

Commit

Permalink
Merge 1416374 into 3cabf1b
Browse files Browse the repository at this point in the history
  • Loading branch information
Afzaal Ameer committed Jun 20, 2014
2 parents 3cabf1b + 1416374 commit b689cc2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/CRUDCollection.js
Expand Up @@ -61,6 +61,17 @@ var CRUDCollection = function(options){

this.wildcard = { };

if (!!options.authenticate){
this.handler.authenticate = options.authenticate;
this.wildcard.authenticate = options.authenticate;
}


if (!!options.basicAuthenticate){
this.handler.basicAuthenticate = options.basicAuthenticate;
this.wildcard.basicAuthenticate = options.basicAuthenticate;
}

if (!!options.fetch){
this.wildcard.fetch = options.fetch;
this.wildcard.GET = function(req, res){
Expand Down

0 comments on commit b689cc2

Please sign in to comment.