Created
January 29, 2018 06:02
-
-
Save nosequeldeebee/2215e094e80d0e988fb6852010c7658a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func makeMuxRouter() http.Handler { | |
muxRouter := mux.NewRouter() | |
muxRouter.HandleFunc("/", handleGetBlockchain).Methods("GET") | |
muxRouter.HandleFunc("/", handleWriteBlock).Methods("POST") | |
return muxRouter | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment