Permalink
Browse files

added dependency on schema.js

  • Loading branch information...
1 parent 0c01913 commit 40c776867b38de329c99deb57319d12be8d3f38c @dgc-wh dgc-wh committed Aug 10, 2012
Showing with 5 additions and 3 deletions.
  1. +3 −2 app.js
  2. +2 −1 package.json
View
@@ -34,7 +34,8 @@ var express = require('express'),
https = require('https'),
crypto = require('crypto'),
redis = require('redis'),
- RedisStore = require('connect-redis')(express);
+ RedisStore = require('connect-redis')(express),
+ jsschema = require('schema')();
// Configuration
try {
@@ -290,7 +291,7 @@ function processRequest(req, res, next) {
if (params.hasOwnProperty(param)) {
if (params[param] !== '') {
// URL params are prepended with ":"
- var regx = new RegExp(':' + param);
+ var regx = new RegExp('^:' + param);
// If the param is actually a part of the URL, put it in the URL and remove the param
if (!!regx.test(methodURL)) {
View
@@ -26,7 +26,8 @@
"jade": "0.13",
"oauth": "0.9.3",
"redis": ">= 0.7.0",
- "querystring": "0.1.0"
+ "querystring": "0.1.0",
+ "schema": "0.2.0"
},
"devDependencies": {},
"main": "index",

0 comments on commit 40c7768

Please sign in to comment.