server: Add /dirIndex endpoint to receive the dirIndex