http api broker 변경 적용

This commit is contained in:
2023-10-26 11:26:25 +09:00
parent 0e280ba971
commit e10ecb6744
2 changed files with 3 additions and 11 deletions

View File

@ -13,12 +13,11 @@
"session_storage": "redis://192.168.8.94:6380/3", "session_storage": "redis://192.168.8.94:6380/3",
"session_ttl" : 60, "session_ttl" : 60,
"maingate_session_storage": "redis://192.168.8.94:6380/1",
"maingate_session_ttl" : 3600,
"maingate_api_token": "63d08aa34f0162622c11284b", "maingate_api_token": "63d08aa34f0162622c11284b",
"social_redis_url": "redis://192.168.8.94:6380/4", "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_storage_url" : "mongodb://192.168.8.94:27017/social?replicaSet=repl01&retrywrites=false",
"social_friends_max" : 50,
"tavern_service_url": "http://localhost/tavern", "tavern_service_url": "http://localhost/tavern",
"tavern_group_types": { "tavern_group_types": {

View File

@ -135,12 +135,5 @@ func (so *Social) api(w http.ResponseWriter, r *http.Request) {
return return
} }
funcname := r.URL.Query().Get("call") so.httpApiBorker.Call(w, r)
if len(funcname) == 0 {
logger.Println("query param 'call' is missing")
w.WriteHeader(http.StatusBadRequest)
return
}
so.httpApiBorker.Call(funcname, w, r)
} }