http api broker 변경 적용
This commit is contained in:
@ -12,13 +12,12 @@
|
|||||||
},
|
},
|
||||||
"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": {
|
||||||
|
|||||||
@ -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)
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user