summaryrefslogtreecommitdiff
path: root/src/services/products/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/services/products/index.ts')
-rw-r--r--src/services/products/index.ts20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/services/products/index.ts b/src/services/products/index.ts
new file mode 100644
index 0000000..7e1509a
--- /dev/null
+++ b/src/services/products/index.ts
@@ -0,0 +1,20 @@
+import Form from './ProductForm';
+
+const service = {
+ route: 'products',
+ name: 'Товары',
+ nameSingular: 'Товар',
+ tableFields: [
+ { key: 'name', label: 'Название' },
+ { key: 'price', label: 'Цена' },
+ { key: 'quantity', label: 'На складе' },
+ ],
+ default: {
+ name: '',
+ price: '',
+ quantity: 0,
+ },
+ Form,
+};
+
+export default service;