generated from ElnuDev/go-project
dict: MVP
This commit is contained in:
parent
f8ccf62570
commit
01204ffc81
9 changed files with 191 additions and 4 deletions
|
@ -10,9 +10,10 @@ import (
|
|||
func GenerateApiSubmit(clients *ClientSet) httputils.Handler {
|
||||
return httputils.GenerateHandler(
|
||||
"",
|
||||
func(w http.ResponseWriter, r *http.Request) {
|
||||
func(w http.ResponseWriter, r *http.Request) bool {
|
||||
r.ParseMultipartForm(0)
|
||||
clients.BroadcastWord(r.FormValue("word"))
|
||||
return true
|
||||
},
|
||||
nil,
|
||||
[]string{http.MethodPost},
|
||||
|
|
Reference in a new issue