Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 33fe4b2b80 |
1
main.go
1
main.go
@@ -42,6 +42,7 @@ func generatePassword() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func passwordHandler(w http.ResponseWriter, r *http.Request) {
|
func passwordHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
|
log.Printf("APIHandler called from %s\n", r.RemoteAddr)
|
||||||
password := generatePassword()
|
password := generatePassword()
|
||||||
fmt.Fprint(w, password)
|
fmt.Fprint(w, password)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user