facebooc icon indicating copy to clipboard operation
facebooc copied to clipboard

Abstract the request Handler

Open mark86092 opened this issue 8 years ago • 0 comments

By exposing the interface of routeHandle, the server won't call the handler directly.

Thus, in this PR, I separate the route matching component.

In the future, one may combine some common shared task (middleware? eg: authetication) with routes, i.e. one can extend routeHandle.

mark86092 avatar May 19 '16 04:05 mark86092