Commit 25c8fad
Changed files (2)
app
infrastructure
app/infrastructure/api.js
@@ -9,10 +9,7 @@ export default class Api {
console.log(`GET ${this.url}`);
fetch(this.url, { method: 'GET', headers: headers })
.then((response) => response.json())
- .then((json) => {
- console.dir(json);
- success(json);
- })
+ .then((json) => success(json))
.catch((error) => console.error(error))
.done();
});
@@ -21,17 +18,13 @@ export default class Api {
post(body, success) {
const jsonBody = JSON.stringify(body);
console.log(`POST ${this.url}`);
- console.dir(jsonBody)
fetch(this.url, {
method: "POST",
headers: { 'Accept': 'application/json', 'Content-Type': 'application/json' },
body: jsonBody
})
.then((response) => response.json())
- .then((json) => {
- console.dir(json);
- success(json);
- })
+ .then((json) => success(json))
.catch((error) => console.error(error))
.done();
}
app/infrastructure/event-aggregator.js
@@ -9,9 +9,7 @@ export default class EventAggregator {
publish(event) {
console.log("publishing:");
- console.dir(event);
this._subscriptionsFor(event.event).forEach((x) => {
- console.dir(x);
x.notify(event);
});
}