http api broker 변경 적용
This commit is contained in:
@ -188,12 +188,5 @@ func (tv *Tavern) api(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
funcname := r.URL.Query().Get("call")
|
||||
if len(funcname) == 0 {
|
||||
logger.Println("query param 'call' is missing")
|
||||
w.WriteHeader(http.StatusBadRequest)
|
||||
return
|
||||
}
|
||||
|
||||
tv.httpApiBorker.Call(funcname, w, r)
|
||||
tv.httpApiBorker.Call(w, r)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user