ring middleware to provide an index file