Commit 35d483f1 authored by Gabriel's avatar Gabriel

Agrega endpoint watson/confirmar_reserva_espontanea y mock de federador

parent cc3821c1
...@@ -104,5 +104,19 @@ module.exports = ...@@ -104,5 +104,19 @@ module.exports =
.catch(function (error) { .catch(function (error) {
console.log(error); console.log(error);
}); });
},
federarUsuario: async function () {
//TODO
return {success: true};
},
crearTurnoBajoDemanda: async function (idAgenda, idPersonaFederada) {
return await isClient.post(`/watson/confirmar_reserva_espontanea?id_agenda=${idAgenda}&id_persona_federada=${idPersonaFederada}`)
.then(async function (response) {
return response.data;
})
.catch(function (error) {
console.log(error);
return {success: false};
});
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment