scalra
Version:
node.js framework to prototype and scale rapidly
22 lines (17 loc) • 297 B
HTML
<html>
// test SR.API
// negative test
SR.API.HelloWorld(function (err, result) {
if (err) {
return SR.error(err);
}
SR.warn(result);
});
// positive test
SR.API.HelloWorld({name: 'John'}, function (err, result) {
if (err) {
return SR.error(err);
}
SR.warn(result);
});
</html>