|
|
|
@ -137,7 +137,7 @@ app.post('/info/add/:name', function(req, res){ |
|
|
|
res.send('color ' + req.params.name + ' added to database'); |
|
|
|
res.send('color ' + req.params.name + ' added to database'); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
// connectWithRetry();
|
|
|
|
connectWithRetry(); |
|
|
|
|
|
|
|
|
|
|
|
app.listen(3001, () => { |
|
|
|
app.listen(3001, () => { |
|
|
|
console.log('Server running on port 3001'); |
|
|
|
console.log('Server running on port 3001'); |
|
|
|
|