From bca9d46f61ab35620672a9e1049ef9f54424df4b Mon Sep 17 00:00:00 2001 From: Yoshua Wuyts Date: Thu, 23 Jun 2016 16:44:45 +0200 Subject: [PATCH] router: fix arguments bug --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 42028cb..9c87df8 100644 --- a/index.js +++ b/index.js @@ -179,9 +179,9 @@ function choo () { } // register all routes on the router - // [obj|fn] -> null - function router (cb) { - _router = sheetRouter(cb) + // (str?, [fn|[fn]]) -> obj + function router (defaultRoute, cb) { + _router = sheetRouter(defaultRoute, cb) return _router }