YUKI Hiroshi
null+****@clear*****
Tue Feb 5 19:01:16 JST 2013
YUKI Hiroshi 2013-02-05 19:01:16 +0900 (Tue, 05 Feb 2013) New Revision: d13ff06c28ba356ced131a18179f7b110f30eb77 https://github.com/groonga/express-kotoumi/commit/d13ff06c28ba356ced131a18179f7b110f30eb77 Log: Accept responseBuilder Modified files: lib/frontend/rest-adaptor.js Modified: lib/frontend/rest-adaptor.js (+7 -4) =================================================================== --- lib/frontend/rest-adaptor.js 2013-02-05 18:20:18 +0900 (0f5566c) +++ lib/frontend/rest-adaptor.js 2013-02-05 19:01:16 +0900 (a2998be) @@ -75,12 +75,15 @@ exports.register = function(application, params) { if (!definition.method) return; // ignore not a command definition var method = getRegisterationMethod(definition.method); var handler = createHandler({ - connection: connection, - command: command, - requestBuilder: definition.requestBuilder + connection: connection, + command: command, + requestBuilder: definition.requestBuilder, + responseBuilder: definition.responseBuilder }); application[method](prefix + definition.path, handler); - registeredCommands.push({ command: command, definition: definition }); + registeredCommands.push({ command: command, + definition: definition, + handler: handler }); }); return registeredCommands; } -------------- next part -------------- HTML����������������������������... Download