Require Share + 'static for middleware