Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: request-handling pipeline #2390

Closed
bajtos opened this issue Feb 14, 2019 · 2 comments
Closed

Docs: request-handling pipeline #2390

bajtos opened this issue Feb 14, 2019 · 2 comments
Assignees
Labels
Docs REST Issues related to @loopback/rest package and REST transport in general

Comments

@bajtos
Copy link
Member

bajtos commented Feb 14, 2019

This is a follow-up for the spike #2318, see the discussion and PoC code for more context.

Describe request handling steps. Explain the order in which different middleware and route handlers are invoked in LB4, what extension points are provided. This content can go into a new section to Advanced topics in Sequence or we can create an entirely new page.

When #2389 is done, requests will be handled in the following steps:

  1. Request-preprocessing middleware like CORS, this is not customizable yet.
  2. Native LoopBack 4 routes (controller methods or route handlers).
  3. External Express routers (if the request was not handled yet).
  4. Static assets (if the request was not handled yet).

Related issues: #1849

@dhmlau
Copy link
Member

dhmlau commented Mar 19, 2019

Some feedback from @raymondfeng @b-admike : #1833 (comment)

@dhmlau dhmlau added 2019Q2 and removed TOB labels Mar 20, 2019
@bajtos bajtos self-assigned this Apr 1, 2019
@bajtos bajtos added this to the April 2019 milestone milestone Apr 1, 2019
@emonddr
Copy link
Contributor

emonddr commented Apr 1, 2019

Request-preprocessing middleware like CORS, this is not customizable yet.

Perhaps we should clarify what we mean here by not customizable yet for CORS middleware.
Is it in place for the user or not? (I thought it was) , and what are the default (non-customizable) settings?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Docs REST Issues related to @loopback/rest package and REST transport in general
Projects
None yet
Development

No branches or pull requests

3 participants