Split endpoints into distinct files