SE701-T5 / Backend

Heroku deployed Node.js backend server developed by Team-5 for the UniForum project associated with the University of Auckland SOFTENG 701 course
https://uni-forum.herokuapp.com/
MIT License
2 stars 18 forks source link

Implement request for database reset #29

Closed R055A closed 2 years ago

R055A commented 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:

app.route('/api/v1/reset')
    .post(database.resetDB);

While database.resetDB can be found in controllers/db.server.controller.js