Skip to content

Commit

Permalink
fix(view-engine): Use pug in server.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonkirbysimonkirby committed Jun 4, 2024
1 parent 08094ac commit ba6d58b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions server/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ var logger = require('morgan');
var apiRouter = require('./routes/api');
var app = express();

// View engine setup
app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'pug');

app.use(logger('dev'));
app.use(express.json());
app.use(express.urlencoded({ extended: false }));
Expand Down
3 changes: 2 additions & 1 deletion server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"dotenv": "^16.4.5",
"express": "^4.19.2",
"morgan": "^1.10.0",
"pg": "^8.11.5"
"pg": "^8.11.5",
"pug": "^3.0.3"
},
"devDependencies": {
"nodemon": "^3.1.0"
Expand Down

0 comments on commit ba6d58b

Please sign in to comment.