Skip to content

Instantly share code, notes, and snippets.

@mde
Created April 27, 2013 05:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mde/5471951 to your computer and use it in GitHub Desktop.
Save mde/5471951 to your computer and use it in GitHub Desktop.
Main controller with all JSON format
var Main = function () {
this.index = function (req, resp, params) {
this.respond(params, {
format: 'json'
});
};
this.test1 = function (req, resp, params) {
this.respond(params, {
format: 'json'
});
};
this.test2 = function (req, resp, params) {
this.respond(params, {
format: 'json'
});
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment