Skip to content

Commit

Permalink
changing ejs to render regular html
Browse files Browse the repository at this point in the history
Signed-off-by: Flynn Joffray <flynn@balena.io>
Change-type: patch
  • Loading branch information
nucleardreamer committed Jun 3, 2022
1 parent e76abf2 commit 97e4858
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ const favicon = require('serve-favicon')
const app = express()
const PORT = 80

app.use(favicon(join(__dirname, '../views/public', 'favicon.ico')))
app.set('views', join(__dirname, '../views'))
app.set('view engine', 'ejs')
app.use(favicon(join(__dirname, '..', 'views', 'public', 'favicon.ico')))
app.set('views', join(__dirname, '..', 'views'))
app.engine('html', require('ejs').renderFile)
app.set('view engine', 'html')

// Enable the public directory for resource files
app.use('/public', express.static(
Expand Down
File renamed without changes.

0 comments on commit 97e4858

Please sign in to comment.