Middleware syntax update