You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The new API should build on the foundation laid down by StaticAssetsRoute and allows LB4 app
developers to add arbitrary set of Express routes and provide OpenAPI spec.
As a result, LB4 will have the following request-handling pipeline:
Request-preprocessing middleware like CORS, this is not customizable yet.
Native LoopBack 4 routes (controller methods or route handlers).
External Express routers (if the request was not handled yet).
Static assets (if the request was not handled yet).
This is a follow-up for the spike #2318, see the discussion and PoC code for more context.
Implement
app.mountExpressRouter(basePath, router, spec?)
to allow LB4 app developers to add arbitrary set of Express routes and provide OpenAPI specThe new API should build on the foundation laid down by StaticAssetsRoute and allows LB4 app
developers to add arbitrary set of Express routes and provide OpenAPI spec.
As a result, LB4 will have the following request-handling pipeline:
Related issues: #1849
Acceptance criteria
StaticAssetsRoute
intoExternalExpressRoutes
andExternalRoute
, see PoC in external-express-routes.ts --> refactor(rest): rework StaticAssetsRoute into ExternalExpressRoutes #2524mountExpressRouter
to bothRestServer
andRestApplication
classes.express.Router
(not LB3).The text was updated successfully, but these errors were encountered: