Skip to content

API Explorer not showing endpoints defined in boot script #3587

@TamoMaez

Description

@TamoMaez

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions