// this handles /dapr/subscribe, which is called from dapr into this app.
// this returns the list of topics the app is subscribed to.
this handles /dapr/subscribe, which is called from dapr into this app.
this returns the list of topics the app is subscribed to.
// this handles / dapr / subscribe which is called from dapr into this app . // this returns the list of topics the app is subscribed to .
func configureSubscribeHandler(w http.ResponseWriter, r *http.Request) {
	log.Printf("configureSubscribeHandler called\n")
	var t topicsList
	t.Topic = append(t.Topic, pubsubA, pubsubB)
	log.Printf("configureSubscribeHandler subscribing to:%v\n", t.Topic)
	w.WriteHeader(http.StatusOK)
	json.NewEncoder(w).Encode(t.Topic)
}
func configureSubscribeHandler ( w http . ResponseWriter , r * http . Request ) { log . Printf ( " \n " ) var t topicsList t . Topic = append ( t . Topic , pubsubA , pubsubB ) log . Printf ( " \n " , t . Topic ) w . WriteHeader ( http . StatusOK ) json . NewEncoder ( w ) . Encode ( t . Topic ) }
this handles /dapr/subscribe, which is called from dapr into this app.
this handles / dapr / subscribe which is called from dapr into this app .