Added Axios and removed fetch...

Axios has CSXF integrated.
This commit is contained in:
Paolo Arena
2019-02-19 02:33:02 +01:00
parent ee6cf47c29
commit ec49343556
15 changed files with 204 additions and 236 deletions

View File

@@ -200,10 +200,8 @@ namespace Actions {
},
}
let call = process.env.MONGODB_HOST + '/subscribe'
return Api.SendReq(call, 'POST', myres)
.then(({ res, body }) => {
return Api.SendReq('/subscribe', 'POST', myres)
.then(res => {
state.wasAlreadySubscribed = true
state.wasAlreadySubOnDb = true