Simplify AWS lambda TypeScript functions with middleware

Writing server code can be messy. For servers this is usually solved with the pattern of middlewares. For AWS lambdas we have multiple ways to handle it.…