fix router to send index to public dir