Add middleware for reading transit request bodies