Changeset 717ceae for backend/data.js
- Timestamp:
- 08/30/22 14:13:43 (2 years ago)
- Branches:
- master
- Children:
- 16237c4
- Parents:
- b612ab1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
backend/data.js
rb612ab1 r717ceae 1 import bcrypt from "bcryptjs"; 2 1 3 const data = { 4 users: [ 5 { 6 name: "Nace", 7 email: "nace@example.com", 8 password: bcrypt.hashSync("123456"), 9 isAdmin: true, 10 }, 11 { 12 name: "tester1", 13 email: "tester@example.com", 14 password: bcrypt.hashSync("123456"), 15 isAdmin: false, 16 }, 17 ], 2 18 products: [ 3 19 { 4 _id: "1",20 //_id: "1", 5 21 name: "Арин", 6 22 slug: "gejmerski-stol-arin", … … 18 34 }, 19 35 { 20 _id: "2",36 //_id: "2", 21 37 name: "Торин", 22 38 slug: "gejmerski-stol-torin",
Note:
See TracChangeset
for help on using the changeset viewer.