The POST route in server/routes/news.js needs to be written. The DB function is already written for you and you just need to call it.
The db function that inserts a news is in server/db/news.js.
[ ] Complete the implementation for the POST route
[ ] Write tests
[ ] Run all rests
[ ] Run lint
[ ] Create a PR and wait for a facilitator to review it
The POST route in
server/routes/news.js
needs to be written. The DB function is already written for you and you just need to call it. The db function thatinsert
s a news is inserver/db/news.js
.