adding directory route router for directory listing
corrected directory listing response handling