command.go 191 B

123456789
  1. package main
  2. import "net/http"
  3. func SendCommand(w http.ResponseWriter, r *http.Request) {
  4. command, _ := mv(r, "command", false)
  5. MCServer.SendCommand(command)
  6. sendJSONResponse(w, "OK")
  7. }