Commit bf975d4f authored by mikamboo's avatar mikamboo
Browse files

TG-55 #ready-for-test : Update api lib favorites endpoint, rename lib file

parent 49f844e1
/node_modules/
www/app/libs/LbService.js
www/app/libs/lb-services.js
www/lib
......@@ -17,7 +17,7 @@ module.exports = function(config) {
'www/lib/angular-mocks/angular-mocks.js',
'www/lib/angular-resource/angular-resource.min.js',
'www/lib/angular-translate/angular-translate.min.js',
'www/app/libs/LbServices.js',
'www/app/libs/lb-services.js',
//-- Modules
'www/app/app.js',
......
......@@ -123,7 +123,7 @@ angular
* @return {$promise} promise
*/
self.addFavorite = function(userId, shopId){
return User.favoritesShops.link({
return User.favoriteshops.link({
id: userId,
fk: shopId
}, null).$promise.then(function(response){
......@@ -144,7 +144,7 @@ angular
* @return {$promise} promise
*/
self.removeFavorite = function(userId, shopId){
return User.favoritesShops.unlink({
return User.favoriteshops.unlink({
id: userId,
fk: shopId
}).$promise.then(function(response){
......
......@@ -13,7 +13,7 @@
<script src="lib/ionic/js/ionic.bundle.js"></script>
<!-- Other angularjs js libs -->
<script src="app/libs/LbServices.js"></script>
<script src="app/libs/lb-services.js"></script>
<script src="lib/angular-resource/angular-resource.min.js"></script>
<script src="lib/angular-translate/angular-translate.min.js"></script>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment