I have the following code
app.get('/posts',function(req,res){
console.log(posts);
res.send(posts);
res.send(200);
});
And i am using the following to get and return the array of js objects (posts is the array)
App.PostsRoute = Ember.Route.extend({
model: function(){
return $.ajax({
url : '/posts',
type : 'GET',
success : function(data){
return data;
}
});
}
});
So when i populate the posts array with [ { body: "Hello" }, {body : "world" } ] , i get the following output in console :

Whereas in my app, the model is not rendered, moreover i can't see any response in chrome dev tools, these are some ss

Response is Empty, not even {} . What is going wrong? I dont think there is anything with Ember , after all i can't see the response!