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.

src/back/app.js   A
last analyzed

Complexity

Total Complexity 0
Complexity/F 0

Size

Lines of Code 28
Function Count 0

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 0
wmc 0
c 1
b 0
f 0
nc 1
mnd 0
bc 0
fnc 0
dl 0
loc 28
rs 10
bpm 0
cpm 0
noi 0
1
/**
2
 * Application.
3
 *
4
 * @alias App.
5
 */
6
7
const express = require('express');
8
const bodyParser = require('body-parser');
9
const raven = require('raven');
10
const pug = require('pug');
11
12
const cors = require('./middlewares/cors');
13
const xPoweredBy = require('./middlewares/xPoweredBy');
14
const routes = require('./routes/index');
15
16
// Init app.
17
const app = express();
18
// Init sentry, for capturing backend errors.
19
// @see https://sentry.io/log/
20
raven.config(global.SENTRY_DSN_BACKEND).install();
21
22
// Configure app.
23
app.use(raven.requestHandler());
24
app.use(express.static('./public'));
25
app.set('views', './src/back/views');
26
app.set('view engine', pug.name.toLowerCase());
27
app.use(bodyParser.json());
28
app.use(bodyParser.urlencoded({ extended: true }));
29
app.use(cors);
30
app.use(xPoweredBy);
31
app.use('/', routes);
32
app.use(raven.errorHandler());
33
34
module.exports = app;
35