mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-22 03:34:14 +00:00
fix(services): Remove accidental WIP inclusion
This commit is contained in:
parent
3e8a3ee5f4
commit
aed39a206d
1 changed files with 0 additions and 31 deletions
|
|
@ -1,31 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
angular
|
||||
.module('habitrpg')
|
||||
.factory('Inventory', inventoryFactory);
|
||||
|
||||
inventoryFactory.$inject = [
|
||||
'$http',
|
||||
'$resource',
|
||||
'ApiUrl',
|
||||
'User'
|
||||
];
|
||||
|
||||
function inventoryFactory($http, $resource, ApiUrl, User) {
|
||||
var utils = $resource(ApiUrl.get() + '/api/v2/user/inventory/',
|
||||
{key: '@_key', type: '@_type', pet: '@_pet', food: '@_food', egg: '@_egg', hatchingPotion: '@_hatchingPotion'},
|
||||
{
|
||||
buyList: {method: 'GET', url: ApiUrl.get() + '/api/v2/user/inventory/buy'},
|
||||
buy: {method: 'POST', url: ApiUrl.get() + '/api/v2/user/inventory/buy/:key'},
|
||||
sell: {method: 'POST', url: ApiUrl.get() + '/api/v2/user/inventory/sell/:type/:key'},
|
||||
purchase: {method: 'POST', url: ApiUrl.get() + '/api/v2/user/inventory/purchase/:type/:key'},
|
||||
hourglass: {method: 'POST', url: ApiUrl.get() + '/api/v2/user/inventory/hourglass/:type/:key'},
|
||||
mystery: {method: 'POST', url: ApiUrl.get() + '/api/v2/user/inventory/mystery/:key'}
|
||||
});
|
||||
|
||||
var inventoryService = {
|
||||
utils: utils
|
||||
};
|
||||
|
||||
return inventoryService;
|
||||
};
|
||||
Loading…
Reference in a new issue