// appRouter initializes restful api router
appRouter initializes restful api router
// appRouter initializes restful api router
func appRouter() *mux.Router {
	router := mux.NewRouter().StrictSlash(true)
	router.HandleFunc("/", indexHandler).Methods("GET")
	router.HandleFunc("/singlehop", singlehopHandler).Methods("POST")
	router.HandleFunc("/multihop", multihopHandler).Methods("POST")
	router.HandleFunc("/tests/invoke_test", testHandler).Methods("POST")
	router.Use(mux.CORSMethodMiddleware(router))
	return router
}
func appRouter ( ) * mux . Router { router := mux . NewRouter ( ) . StrictSlash ( true ) router . HandleFunc ( " " , indexHandler ) . Methods ( " " ) router . HandleFunc ( " " , singlehopHandler ) . Methods ( " " ) router . HandleFunc ( " " , multihopHandler ) . Methods ( " " ) router . HandleFunc ( " " , testHandler ) . Methods ( " " ) router . Use ( mux . CORSMethodMiddleware ( router ) ) return router }
appRouter initializes restful api router
appRouter initializes restful api router