add naive implementation of shares endpoint