Integrating Express Middleware into Custom HttpApi
Hey guys,
I am trying to implement some existing Middleware (from which the most noteable is a oidc passport and it's configuration), which was written for express, inside my handlers for my HttpApi Implementation.
I don't like the way express handles these kind of things, and some time in the future I will write my own "effectish" Middleware, but for now, I don't have the time to write these tedious authentication functions myself.
Can someone give me some hints, on how to implement middleware from this express-style (req, res, next) into my HttpApi, which I am building from a HttpApiBuilder?
Some examples, if there are any, would also be much appreciated
I am trying to implement some existing Middleware (from which the most noteable is a oidc passport and it's configuration), which was written for express, inside my handlers for my HttpApi Implementation.
I don't like the way express handles these kind of things, and some time in the future I will write my own "effectish" Middleware, but for now, I don't have the time to write these tedious authentication functions myself.
Can someone give me some hints, on how to implement middleware from this express-style (req, res, next) into my HttpApi, which I am building from a HttpApiBuilder?
Some examples, if there are any, would also be much appreciated
