refactor endpoint file name