Skip to content

Commit 93df262

Browse files
committed
remove render engine
fixes #172 pruned package-lock result
1 parent 5bfeb7c commit 93df262

7 files changed

Lines changed: 314 additions & 314 deletions

File tree

app.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env node
22

3-
import createError from 'http-errors'
43
import express from 'express'
54
import path from 'path'
65
import cookieParser from 'cookie-parser'
@@ -18,10 +17,6 @@ const __dirname = path.dirname(__filename)
1817

1918
const app = express()
2019

21-
// view engine setup
22-
app.set('views', path.join(__dirname, 'views'))
23-
app.set('view engine', 'ejs')
24-
2520
//Middleware to use
2621

2722
/**
@@ -72,7 +67,7 @@ app.use(express.static(path.join(__dirname, 'public')))
7267
*/
7368
app.all('*', (req, res, next) => {
7469
if(process.env.DOWN === "true"){
75-
res.status(503).json({"message":"RERUM v1 is down for updates or maintenance at this time. We aplologize for the inconvenience. Try again later."})
70+
res.status(503).json({"message":"RERUM v1 is down for updates or maintenance at this time. We apologize for the inconvenience. Try again later."})
7671
}
7772
else{
7873
next() //pass on to the next app.use

bin/rerum_v1.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,9 @@ function onError(error) {
7878
case 'EACCES':
7979
console.error(bind + ' requires elevated privileges')
8080
process.exit(1)
81-
break
8281
case 'EADDRINUSE':
8382
console.error(bind + ' is already in use')
8483
process.exit(1)
85-
break
8684
default:
8785
throw error
8886
}

0 commit comments

Comments
 (0)