Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added dependency on schema.js

  • Loading branch information...
commit 40c776867b38de329c99deb57319d12be8d3f38c 1 parent 0c01913
@dgc-wh dgc-wh authored
Showing with 5 additions and 3 deletions.
  1. +3 −2 app.js
  2. +2 −1  package.json
View
5 app.js
@@ -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
3  package.json
@@ -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",
Please sign in to comment.
Something went wrong with that request. Please try again.