From a19469397f9b1544efe146d5c50e1875e369437f Mon Sep 17 00:00:00 2001 From: MartinsOnuoha Date: Fri, 10 Jan 2025 12:42:22 +0100 Subject: [PATCH] :ambulance: (index.hbs) update landing --- app.js | 3 ++- bin/www | 18 +++++++++--------- model/countriesAndCities.js | 6 +++--- views/index.hbs | 1 + 4 files changed, 15 insertions(+), 13 deletions(-) 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 @@
+