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 resample #30

Closed R055A closed 2 years ago

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

There is an existing route for this in 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