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) }