Permalink
Browse files

shorter

  • Loading branch information...
1 parent 0f2f593 commit 35da65a07c247382ca454e5dbec01adfefdefe6e @mvrilo committed Dec 7, 2011
Showing with 5 additions and 3 deletions.
  1. +5 −3 lib/frank.js
View
@@ -47,9 +47,11 @@ frank.server = function() {
server.use(connect.favicon());
for (var key in this.handler) {
- var path = this.handler[key].path,
- auth = this.handler[key].auth,
- callback = this.handler[key].callback;
+ var handler = this.handler[key],
+ path = handler.path,
+ method = handler.method,
+ auth = handler.auth,
+ callback = handler.callback;
if (auth) {
server.use(path, connect.basicAuth(function(user, pwd) {

0 comments on commit 35da65a

Please sign in to comment.