Added more data to mock-api and multiple sub-pages
This commit is contained in:
committed by
Erik Tiekstra
parent
9d82c91348
commit
cb5cb8b486
@@ -1,8 +1,14 @@
|
||||
import fs from 'fs';
|
||||
import kommuner from './kommuner.js';
|
||||
import participants from './participants.js';
|
||||
import services from './services.js';
|
||||
import staff from './staff.js';
|
||||
|
||||
const apiData = {
|
||||
participants: participants.generate(50),
|
||||
services: services.generate(),
|
||||
staff: staff.generate(50),
|
||||
kommuner: kommuner.generate(),
|
||||
};
|
||||
|
||||
fs.writeFileSync('api.json', JSON.stringify(apiData, null, '\t'));
|
||||
|
||||
Reference in New Issue
Block a user