I have the following code on the node:
var express = require('express');
var app = express();
app.get('/api/events', function(req, res, next) {
var events = repositorio.ListAll();
res.json(events);
})
app.get('*', function(req, res) {
res.sendfile('./public/index.html');
});
app.listen(9000);
But I perform the same query returns me on screen:
{"isFulfilled": false, "isRejected": false}
My repository.ListAll () method looks like this:
ListAll : function (){
return event.findAll().then(function(eventCTX) {
eventCTX
});
},