From bd2408c66f894c14cda305567e4ec3d0761fb7e1 Mon Sep 17 00:00:00 2001 From: mountain Date: Thu, 26 Oct 2023 11:25:31 +0900 Subject: [PATCH] =?UTF-8?q?http=20api=20broker=20=EB=B3=80=EA=B2=BD=20?= =?UTF-8?q?=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config_template.json | 2 -- core/tavern.go | 9 +-------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/config_template.json b/config_template.json index e992608..00e22f4 100644 --- a/config_template.json +++ b/config_template.json @@ -14,8 +14,6 @@ "session_storage": "redis://192.168.8.94:6380/5", "session_ttl": 3600, - "maingate_session_storage": "redis://192.168.8.94:6380/6", - "maingate_session_ttl" : 3600, "maingate_api_token": "63d08aa34f0162622c11284b", "tavern_redis_url": "redis://192.168.8.94:6380/7", diff --git a/core/tavern.go b/core/tavern.go index 4a88508..3e330ac 100644 --- a/core/tavern.go +++ b/core/tavern.go @@ -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) }