file.py | 
      |
|---|---|
| 
        
         A middleware for serving files.  | 
      
         | 
    
| 
        
         Wrap the app so that instead of handling requests normally, it first looks for a file in the root_path directory that corresponds to the request URL. If the file is not found, the request is handled normally.  | 
      
         | 
    
         |