implemented /share endpoints