From 3b92151dd1ae6219cf35299fa39be6a98e563e08 Mon Sep 17 00:00:00 2001 From: Dustin Diaz Date: Sun, 23 Mar 2014 10:36:55 -0700 Subject: [PATCH] more examples --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 625adab..9f2c350 100644 --- a/README.md +++ b/README.md @@ -51,4 +51,18 @@ limiter({ limiter({ lookup: 'user.id' }) + +// limit your entire app +limiter({ + path: '*', + method: 'all', + lookup: 'connection.remoteAddress' +}) + +// limit users on same IP +limiter({ + path: '*', + method: 'all', + lookup: ['user.id', 'connection.remoteAddress'] +}) ```