diff --git a/bin/rerum_v1.js b/bin/rerum_v1.js index 4efac21f..8b269269 100644 --- a/bin/rerum_v1.js +++ b/bin/rerum_v1.js @@ -15,14 +15,14 @@ dotenv.config() * Get port from environment and store in Express. */ -var port = process.env.PORT ?? 3001 +const port = process.env.PORT ?? 3001 app.set('port', port) /** * Create HTTP server. */ -var server = http.createServer(app) +const server = http.createServer(app) /** * Listen on provided port, on all network interfaces. @@ -48,9 +48,7 @@ function onError(error) { if (error.syscall !== 'listen') { throw error } - - var bind = `Port ${port}` - + const bind = `Port ${port}` // handle specific listen errors with friendly messages switch (error.code) { case 'EACCES': @@ -70,8 +68,8 @@ function onError(error) { function onListening() { console.log("LISTENING ON "+port) - var addr = server.address() - var bind = typeof addr === 'string' + const addr = server.address() + const bind = typeof addr === 'string' ? 'pipe ' + addr : 'port ' + addr.port debug('Listening on ' + bind) diff --git a/public/index.html b/public/index.html index fd39d319..40506154 100644 --- a/public/index.html +++ b/public/index.html @@ -2,7 +2,11 @@
- + + + + +If you are here for the first time and think you want to use RERUM, please - read the API first.
- If you like what you read in our API documentation and want to begin using RERUM as a back stack service please register by clicking below. Be prepared to be routed to Auth0 (don't know why? - Read the API).
@@ -234,11 +238,11 @@