Return tuple from send_join endpoint

This commit is contained in:
Neil Alexander 2019-12-20 12:36:44 +00:00
parent 145921f207
commit cd04b0f74d

View file

@ -176,9 +176,12 @@ func SendJoin(
return util.JSONResponse{
Code: http.StatusOK,
JSON: map[string]interface{}{
"state": stateAndAuthChainRepsonse.StateEvents,
"auth_chain": stateAndAuthChainRepsonse.AuthChainEvents,
JSON: []interface{}{
200,
map[string]interface{}{
"state": stateAndAuthChainRepsonse.StateEvents,
"auth_chain": stateAndAuthChainRepsonse.AuthChainEvents,
},
},
}
}