Skip to content

Commit

Permalink
Fixed jsonrpc exports
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Jun 25, 2010
1 parent 980dcb9 commit 15c6e5e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lib/connect/middleware/jsonrpc.js
Expand Up @@ -14,6 +14,12 @@ var sys = require('sys'),
Buffer = require('buffer').Buffer,
http = require('http');

/**
* Export the `setup()` function.
*/

exports = module.exports = setup;

/**
* JSON-RPC version.
*/
Expand Down Expand Up @@ -69,7 +75,7 @@ errorMessages[INTERNAL_ERROR] = 'Internal Error.';
* @api public
*/

module.exports = function(services) {
function setup(services) {
services = services || {};

// Merge methods
Expand Down Expand Up @@ -209,8 +215,6 @@ module.exports = function(services) {
};
};



/**
* Check if the given request is a valid
* JSON remote procedure call.
Expand Down

0 comments on commit 15c6e5e

Please sign in to comment.