Convert application to a conduit middleware