Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed windows path join. Closes #43

  • Loading branch information...
commit 4572adf82a9b07523e59096c8b3c58281ef88f68 1 parent 8a9fcbe
TJ Holowaychuk tj authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  index.js
3  index.js
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.