Closed R055A closed 2 years ago
This issue won't be fixed for the 1st assignment
This task is for adding sample data to the database on API request. Sample data will require being created and stored in the backend, like in config/ somewhere, for example.
config/
There is an existing route for this in routes/db.server.routes.js:
routes/db.server.routes.js
app.route('/api/v1/resample') .post(database.resampleDB);
While database.resampleDB can be found in controllers/db.server.controller.js
database.resampleDB
controllers/db.server.controller.js
This task is for adding sample data to the database on API request. Sample data will require being created and stored in the backend, like in
config/
somewhere, for example.There is an existing route for this in
routes/db.server.routes.js
:While
database.resampleDB
can be found incontrollers/db.server.controller.js