Skip to content
This repository has been archived by the owner on Sep 18, 2019. It is now read-only.

function "function(mesh, callback, queryParams, req, res) { " doesnt wor... #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions lib/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ exports.getCount = function(mesh, callback, queryParams, req, res) {
});
};

exports.genHTML = function(mesh, callback, queryParams, req, res, next) {
res.ok('<body>Some test html</body>');
exports.genHTML = function(req, res, callback ) {
var body =
'<html>'+
'<body>'+
'<br>process.pid: ' + process.pid +
'<br>counter: '+ (counter++) +
'</body>'+
'</html>';
res.write(body);
res.end();
};