Commit 2eb0892d authored by Ванин Дмитрий Михайлович's avatar Ванин Дмитрий Михайлович
Browse files

Add write info listener

parent 42edebf3
No related merge requests found
Showing with 1 addition and 0 deletions
+1 -0
......@@ -89,6 +89,7 @@ func main() {
}
http.HandleFunc("/", getInfo)
http.HandleFunc("/write", writeInfo)
http.HandleFunc("/whoami", whoami)
fmt.Printf("Try to start on port 8080")
if err := http.ListenAndServe(":8080", nil); err != nil {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment