GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( a545f1...cdb95b )
by Vladimir
27s
created

src/index.js   A

Complexity

Total Complexity 0
Complexity/F 0

Size

Lines of Code 24
Function Count 0

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 6
Bugs 0 Features 0
Metric Value
cc 0
c 6
b 0
f 0
nc 1
dl 0
loc 24
rs 10
wmc 0
mnd 0
bc 0
fnc 0
bpm 0
cpm 0
noi 0
1
/**
2
 * Application entry point.
3
 *
4
 * @alias App.
5
 */
6
7
const express = require('express');
8
const bodyParser = require('body-parser');
9
const socketIo = require('socket.io');
10
11
const cors = require('./middlewares/cors');
12
const xPoweredBy = require('./middlewares/xPoweredBy');
13
const routes = require('./routes/index');
14
15
require('./configs/main');
16
17
// Init app.
18
const app = express();
19
const server = app.listen(global.APP_PORT);
20
global.socket = socketIo.listen(server);
21
22
// Configure app.
23
app.use(express.static('./src/public'));
24
app.set('views', './src/views');
25
app.set('view engine', 'pug');
26
app.use(bodyParser.json());
27
app.use(bodyParser.urlencoded({ extended: true }));
28
app.use(cors);
29
app.use(xPoweredBy);
30
app.use('/', routes);
31