The next big step for this project is to implement middleware. A simple and naive way to do it would be to include a List of functions that type Request --> Request as a parameter on the get, post, put ... functions. Then all we have to do is compose all of the functions together and use their result as the input for the handler. But I am open to other implementations.
The next big step for this project is to implement middleware. A simple and naive way to do it would be to include a List of functions that type
Request --> Request
as a parameter on theget, post, put ...
functions. Then all we have to do is compose all of the functions together and use their result as the input for the handler. But I am open to other implementations.