broker direcrtory renewed, imageservice updated, demo data
This commit is contained in:
13
crawler/importUser.ts
Normal file
13
crawler/importUser.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import fs from 'fs-extra';
|
||||
|
||||
(async () => {
|
||||
const listings = await fs.readJson('./users.json');
|
||||
//listings.forEach(element => {
|
||||
for (const listing of listings) {
|
||||
const response = await fetch('http://localhost:3000/bizmatch/user', {
|
||||
method: 'POST',
|
||||
body: JSON.stringify(listing),
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
});
|
||||
}
|
||||
})();
|
||||
Reference in New Issue
Block a user