Adding env endpoint