UNPKG

quizzer

Version:

Quizzer is a webserver for collaborative writing lab support. Based on a _fail early, fail often? approach to written language, the tool is particularly suited to second-language learners. The workflow (essay - error - quiz - exam) treats mistakes as an o

14 lines (13 loc) 528 B
(function () { var cogClass = function () {}; cogClass.prototype.exec = function (params, request, response) { var oops = this.utils.apiError; var retRows = []; this.sys.db.all('SELECT name,ruleGroupID FROM ruleGroups',function(err,rows){ if (err||!rows) {return oops(response,err,'groups/readgroups')}; response.writeHead(200, {'Content-Type': 'application/json'}); response.end(JSON.stringify(rows)); }); } exports.cogClass = cogClass; })();