feathersjs

How to implement custom / complex operation routes in FeathersJS

余生颓废 提交于 2019-12-01 18:22:58
I need to implement a bunch of routes that do very custom / complex operations on a FeathersJS app. One of those routes is /Category/disableExclusiveContentsOf/:id . It runs a query against half a dozen database tables to find rows that relate to the category :id exclusively. I absolutely cannot do that using the querying abstractions FeathersJS provides. Then, it uses FeathersJS' "local" API to update the rows I found, so that data update events are fired to clients. However, if I implement the route using Express alone, Feathers authentication / authorization hooks won't run, so the endpoint