3.0.2 • Published 9 years ago

mixdown-json v3.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

mixdown-json

Plugin for json response for mixdown.js.

Usage

Mixdown Router handler

module.exports = function(httpContext) {
  var req = httpContext.request;
  var res = httpContext.response;
  var app = httpContext.app;

  app.plugins.json.send({ hip: 'hop '}, res, {}, req);
};

Express

var app = mixdown.apps['foo'];

expressApp.get('/foo/bar', function(req, res) {
  app.plugins.json.send({ hip: 'hop '}, res, {}, req);
});
3.0.2

9 years ago

3.0.1

10 years ago

3.0.0

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago