(feat) Added convenience impl of Middleware for controller functions.