facebooc
facebooc copied to clipboard
Abstract the request Handler
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
.