Browse files

Fixed windows path join. Closes #43

  • Loading branch information...
1 parent 8a9fcbe commit 4572adf82a9b07523e59096c8b3c58281ef88f68 @tj tj committed Dec 28, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 index.js
View
3 index.js
@@ -11,7 +11,6 @@
*/
var express = require('express')
- , join = require('path').join
, lingo = require('lingo')
, en = lingo.en;
@@ -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

0 comments on commit 4572adf

Please sign in to comment.