Slide 22
Slide 22 text
find: function(store, type, id) {
if (type === App.Post) {
$.ajax('/enterprise_cms/v134uu5/
db-legacy/posts_endpoint-v2/'+id,
'GET', {
success: function(json) {
store.load(type, json);
}
});
} else if (type === App.Comment) {
$.ajax('/comments/'+id, 'GET', {
success: function(json) {
store.load(type, json);
}
});
}
}