diff --git a/public/js/apps/home.js b/public/js/apps/home.js index 8d06761..859bd97 100644 --- a/public/js/apps/home.js +++ b/public/js/apps/home.js @@ -41,7 +41,7 @@ var Home = App.Home = { } }) .done(function(res) { - var list_tricks = res.data.tricks; + var list_tricks = res.tricks; App.Trick.renderTrick(el, list_tricks); diff --git a/public/js/apps/trick.js b/public/js/apps/trick.js index 38f0316..0fbbbcc 100644 --- a/public/js/apps/trick.js +++ b/public/js/apps/trick.js @@ -44,8 +44,8 @@ var Trick = App.Trick = { } }) .done(function(res) { - var list_tricks = res.data.tricks; - var tricks_count = res.data.tricks_count; + var list_tricks = res.tricks; + var tricks_count = res.tricks_count; Trick.renderTrick(el, list_tricks);