// appRouter initializes restful api router
appRouter initializes restful api router
// appRouter initializes restful api router
func appRouter() *mux.Router {
	log.Printf("Enter appRouter()")
	router := mux.NewRouter().StrictSlash(true)
	router.HandleFunc("/", indexHandler).Methods("GET")
	router.HandleFunc("/tests/get", getReceivedMessages).Methods("POST")
	router.HandleFunc("/dapr/subscribe", configureSubscribeHandler).Methods("GET")
	router.HandleFunc("/"+pubsubA, subscribeHandler).Methods("POST")
	router.HandleFunc("/"+pubsubB, subscribeHandler).Methods("POST")
	router.Use(mux.CORSMethodMiddleware(router))
	return router
}
func appRouter ( ) * mux . Router { log . Printf ( " " ) router := mux . NewRouter ( ) . StrictSlash ( true ) router . HandleFunc ( " " , indexHandler ) . Methods ( " " ) router . HandleFunc ( " " , getReceivedMessages ) . Methods ( " " ) router . HandleFunc ( " " , configureSubscribeHandler ) . Methods ( " " ) router . HandleFunc ( " " + pubsubA , subscribeHandler ) . Methods ( " " ) router . HandleFunc ( " " + pubsubB , subscribeHandler ) . Methods ( " " ) router . Use ( mux . CORSMethodMiddleware ( router ) ) return router }
appRouter initializes restful api router
appRouter initializes restful api router