"Mount" middleware to a path prefix.