From e10ecb6744bd035f1f0aa9a7a984fa0d0fa739cc Mon Sep 17 00:00:00 2001 From: mountain Date: Thu, 26 Oct 2023 11:26:25 +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 | 5 ++--- core/social.go | 9 +-------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/config_template.json b/config_template.json index 2babd3f..5e37cc3 100644 --- a/config_template.json +++ b/config_template.json @@ -12,13 +12,12 @@ }, "session_storage": "redis://192.168.8.94:6380/3", "session_ttl" : 60, - - "maingate_session_storage": "redis://192.168.8.94:6380/1", - "maingate_session_ttl" : 3600, + "maingate_api_token": "63d08aa34f0162622c11284b", "social_redis_url": "redis://192.168.8.94:6380/4", "social_storage_url" : "mongodb://192.168.8.94:27017/social?replicaSet=repl01&retrywrites=false", + "social_friends_max" : 50, "tavern_service_url": "http://localhost/tavern", "tavern_group_types": { diff --git a/core/social.go b/core/social.go index 8eb3b8a..e540dfb 100644 --- a/core/social.go +++ b/core/social.go @@ -135,12 +135,5 @@ func (so *Social) 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 - } - - so.httpApiBorker.Call(funcname, w, r) + so.httpApiBorker.Call(w, r) }