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{ return util.JSONResponse{
Code: http.StatusOK, Code: http.StatusOK,
JSON: map[string]interface{}{ JSON: []interface{}{
"state": stateAndAuthChainRepsonse.StateEvents, 200,
"auth_chain": stateAndAuthChainRepsonse.AuthChainEvents, map[string]interface{}{
"state": stateAndAuthChainRepsonse.StateEvents,
"auth_chain": stateAndAuthChainRepsonse.AuthChainEvents,
},
}, },
} }
} }