diff --git a/app.js b/app.js index b0e9d29..72d5155 100644 --- a/app.js +++ b/app.js @@ -8,10 +8,11 @@ const cookieParser = require('cookie-parser'); const bodyParser = require('body-parser'); const logger = require('morgan'); const swaggerUi = require('swagger-ui-express'); +const rateLimit = require('express-rate-limit'); const corsConfig = require('./config/cors'); -const rateLimit = require('express-rate-limit'); const rateLimitConfig = require('./config/rateLimit'); + const rateLimiter = rateLimit(rateLimitConfig); const indexRouter = require('./routes/index'); diff --git a/bin/www b/bin/www index f12538a..e34e07c 100755 --- a/bin/www +++ b/bin/www @@ -48,14 +48,6 @@ app.set('port', port); const server = http.createServer(app); -/** - * Listen on provided port, on all network interfaces. - */ - -server.listen(port); -server.on('error', onError); -server.on('listening', onListening); - /** * Event listener for HTTP server "error" event. */ @@ -93,6 +85,14 @@ function onListening() { const bind = typeof addr === 'string' ? `pipe ${addr}` : `port ${addr.port}`; - console.log(`Listening on ${bind}`); + console.log(`Listening on ${bind}: http://127.0.0.1:${addr.port}`); debug(`Listening on ${bind}`); } + +/** + * Listen on provided port, on all network interfaces. + */ + +server.listen(port); +server.on('error', onError); +server.on('listening', onListening); diff --git a/model/countriesAndCities.js b/model/countriesAndCities.js index 2c452fe..4588a1d 100644 --- a/model/countriesAndCities.js +++ b/model/countriesAndCities.js @@ -4088,7 +4088,7 @@ const CountriesAndCities = [ 'Chapai Nawabganj', 'Chattogram', 'Chuadanga', - "Cox's Bazar", + `Cox's Bazar`, 'Cumilla', 'Dinajpur', 'Dhaka', @@ -50003,8 +50003,8 @@ const CountriesAndCities = [ 'Zalau', 'Zarnesti', 'Zlatna', - 'Simleu Silvaniei', - ], + 'Simleu Silvaniei' + ] }, { country: 'Russia', diff --git a/views/index.hbs b/views/index.hbs index 6fe73d7..7cce1c6 100644 --- a/views/index.hbs +++ b/views/index.hbs @@ -8,6 +8,7 @@