Public API for a society manager application

view-society.js 292B

1234567891011121314
  1. var society_controller = require("./../../presenters/society-controller.js");
  2. module.exports = {
  3. perform: function (a,b) {
  4. perform(a,b);
  5. }
  6. }
  7. var perform = function (req, res) {
  8. society_controller.get_society(req.params.societyid, function (result) {
  9. res.send(result);
  10. })
  11. };