Closed R055A closed 2 years ago
This task is for removing all data from the database on API request.
There is an existing route for this in routes/db.server.routes.js:
routes/db.server.routes.js
app.route('/api/v1/reset') .post(database.resetDB);
While database.resetDB can be found in controllers/db.server.controller.js
database.resetDB
controllers/db.server.controller.js
This task is for removing all data from the database on API request.
There is an existing route for this in
routes/db.server.routes.js
:While
database.resetDB
can be found incontrollers/db.server.controller.js