added subscribe functionality

/api/subscribe