Custom remote method for embedded model

11 views
Skip to first unread message

Артем Кіндяк

unread,
Jun 20, 2018, 10:17:12 AM6/20/18
to LoopbackJS
Hi guys. Does someone know how can I define a remote method for embedded model which is not public?
F.e. I have a 'BankAccount' entity and it has relation embedsMany -> 'reports'. I have access to all standart routes like 'bank/{id}/reports/{fk}. But all my tries to add my custom remote method to 'reports' model wasn't successfully. I spent a lot of time playing around prototypes and others. Maybe someone know how to do that?
Reply all
Reply to author
Forward
0 new messages