@lancom/shared 0.0.417 → 0.0.419
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/js/api/admin.js +3 -0
- package/package.json +1 -1
package/assets/js/api/admin.js
CHANGED
|
@@ -101,6 +101,9 @@ export default {
|
|
|
101
101
|
saveShop(shop) {
|
|
102
102
|
return shop._id ? _put(`admin/shops/${shop._id}`, shop) : _post('admin/shops', shop);
|
|
103
103
|
},
|
|
104
|
+
savePrinters(shop, printers) {
|
|
105
|
+
return _put(`admin/shops/${shop._id}/printers`, { printers });
|
|
106
|
+
},
|
|
104
107
|
removeShop(id) {
|
|
105
108
|
return _delete(`admin/shops/${id}`);
|
|
106
109
|
},
|