Fixed the container name (#8)
* Fixed the container name * whoamI -> whoami
This commit is contained in:
committed by
Emile Vauge
parent
c039b48727
commit
585d48ff07
4
app.go
4
app.go
@ -34,7 +34,7 @@ func main() {
|
||||
flag.Parse()
|
||||
http.HandleFunc("/echo", echoHandler)
|
||||
http.HandleFunc("/bench", benchHandler)
|
||||
http.HandleFunc("/", whoamI)
|
||||
http.HandleFunc("/", whoami)
|
||||
http.HandleFunc("/api", api)
|
||||
http.HandleFunc("/health", healthHandler)
|
||||
fmt.Println("Starting up on port " + port)
|
||||
@ -75,7 +75,7 @@ func echoHandler(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
}
|
||||
|
||||
func whoamI(w http.ResponseWriter, req *http.Request) {
|
||||
func whoami(w http.ResponseWriter, req *http.Request) {
|
||||
u, _ := url.Parse(req.URL.String())
|
||||
queryParams := u.Query()
|
||||
wait := queryParams.Get("wait")
|
||||
|
Reference in New Issue
Block a user