Skip to content

Commit 9961007

Browse files
authored
Update app.js
1 parent 06afe38 commit 9961007

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

app.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,24 @@
11
const express = require('express');
22
const mongoose = require('mongoose');
3+
const passport = require('passport');
4+
5+
//Passport COnfig
6+
require('./config/passport')(passport);
7+
8+
9+
10+
//Load Routes
11+
const auth = require('./routes/auth');
312

413
const app = express();
514

615
app.get('/', (req, res) => {
716
res.send('It Works!');
817
});
918

19+
app.use('/auth', auth);
1020
const port = process.env.PORT || 5000;
1121

1222
app.listen(port, () => {
1323
console.log(`Server started on port ${port}`)
14-
});
24+
});

0 commit comments

Comments
 (0)