expose serve in file middleware