|
|
@ -152,6 +152,11 @@ app.post('/v1/addImage', (req, res) => { |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
app.get('/v1/update'){ |
|
|
|
getCategories(categories, 'categories') |
|
|
|
getQuestions(questions, 'questions') |
|
|
|
} |
|
|
|
|
|
|
|
const getCategories = (store, collectionName) => { |
|
|
|
MongoClient.connect(url, function(err, client) { |
|
|
|
const db = client.db(dbName); |
|
|
|