Analyzer::Javascript::Moleculer
Inherits Analyzer::Javascript::JavascriptEngine < Analyzer < FileHelper < Reference < Object
Moleculer services reach HTTP only through a moleculer-web gateway
(mixins: [ApiGateway]), whose settings.routes[] map URLs to actions:
aliases: { "GET users/:id": "users.get" } → GET /<route.path>/users/:id
aliases: { "health": "api.health" } → ANY
aliases: { "REST posts": "posts" } → the six CRUD routes
autoAliases: true → every action's rest:
Alias targets are resolved against the services' actions so the
action's params validator names the request params.
Constants
moleculer-web's REST alias shorthand.
Class methods
Instance methods
Instance-side view of the same declaration. The per-file rescues live on
this base class, which has no way to name the analyzer that is running
inside them, so a skipped file could not be attributed to a tech.
Deriving it from analyzer_for keeps the name written exactly once.