This code works and is accessible through REST calls but the endpoint doesn't show up in the explorer
Boot script example (server/boot/someFile.js)
module.exports = function(app) {
var Model = app.models.Model;
Model.greet = function(msg, cb) {
cb(null, 'Greetings... ' + msg);
}
Model.remoteMethod(
'greet',
{
accepts: {arg: 'msg', type: 'string'},
returns: {arg: 'greeting', type: 'string'}
}
);
};
Certainly not a major bug but it had my head scratching for a second
I'm using lb3
Please advise