-
Notifications
You must be signed in to change notification settings - Fork 0
/
server.js
26 lines (21 loc) · 939 Bytes
/
server.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
require('dotenv').config();
const ENV = process.env;
const express = require('express');
const bodyParser = require('body-parser');
var urlencodedParser = bodyParser.urlencoded({ extended: false })
global.app = express();
require('./config/view')();
app.use('/static', express.static('static'))
app.use('/login', require('./routes/login'));
app.use('/register',require('./routes/register'));
app.use('/forgotpassword',require('./routes/forgotpassword'));
app.use('/ambassador',require('./routes/ambassador'));
app.use('/awardedtasks',require('./routes/awardedtasks'));
app.use('/addtasks',require('./routes/addtasks'));
app.use('/incompletedtasks',require('./routes/incompletedtasks'));
app.use('/completedtasks',require('./routes/completetasks'));
app.use('/wallet',require('./routes/wallet'));
app.use('/feedback',require('./routes/feedback'));
app.listen(ENV.PORT, () => {
console.log(`app listening on port ${ENV.PORT}`);
});