Commit 8ae55ccd authored by Vytor Calixto's avatar Vytor Calixto 👾
Browse files

Adicionada biblioteca para compressão de dados

parent 2196906a
......@@ -5,6 +5,7 @@ var bodyParser = require('body-parser')
var passport = require('passport')
var methodOverride = require('method-override')
var cors = require('cors')
var compression = require('compression')
var libs = process.cwd() + '/libs/'
require(libs + 'auth/auth')
......@@ -21,12 +22,14 @@ var arquivos = require('./routes/arquivos')
var app = express()
app.use(compression({level: 9}))
app.use(cors())
app.use(bodyParser.urlencoded({ extended: false }))
app.use(bodyParser.json())
app.use(cookieParser())
app.use(methodOverride())
app.use(passport.initialize())
app.set('json spaces', 2)
app.use('*', cors())
app.use('/', api)
......
......@@ -10,6 +10,7 @@
},
"dependencies": {
"body-parser": "^1.13.1",
"compression": "^1.5.2",
"cookie-parser": "^1.3.5",
"cors": "^2.7.1",
"debug": "~2.0.x",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment