From 5cc5b1661abca4fc903bfeef5a0d7d68ef89cafa Mon Sep 17 00:00:00 2001 From: brettlangdon Date: Sat, 31 Aug 2013 08:30:40 -0400 Subject: [PATCH] on 'request' is not on 'setup' --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d00d145..6941632 100644 --- a/README.md +++ b/README.md @@ -54,8 +54,8 @@ var plugin = function(){ // OR this.GET("/test", this.handle_test); - // this handler gets called for every new request - this.on("request", this.request_setup); + // this handler gets called for every new request regardless of route + this.on("setup", this.request_setup); // for when there isn't a handler that responds to the request, call this this.on("not-found", this.not_found);