Skip to content

Commit

Permalink
Fixed windows path join. Closes #43
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Dec 28, 2011
1 parent 8a9fcbe commit 4572adf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
*/

var express = require('express')
, join = require('path').join
, lingo = require('lingo')
, en = lingo.en;

Expand Down Expand Up @@ -124,7 +123,7 @@ Resource.prototype.map = function(method, path, fn){
if ('function' == typeof path) fn = path, path = '';
if ('object' == typeof path) fn = path, path = '';
if ('/' == path[0]) path = path.substr(1);
else path = join(this.param, path);
else path = path ? this.param + '/' + path : this.param;
method = method.toLowerCase();

// setup route pathname
Expand Down

0 comments on commit 4572adf

Please sign in to comment.