Skip to content

Commit

Permalink
Merge pull request #538 from universoimpulso/dev
Browse files Browse the repository at this point in the history
Dev to master
  • Loading branch information
thaismartins authored Aug 27, 2019
2 parents d6ba5f3 + 47fa6a2 commit d2876e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"indent": ["error", 2, {
"ImportDeclaration": "first",
"MemberExpression": 1,
"SwitchCase": 0
"SwitchCase": 1
}],
"prettier/prettier": "error"
}
Expand Down
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import dotenv from 'dotenv'
import express from 'express'
import mongoose from 'mongoose'
import cors from 'cors'
import appRoutes from './routes'
import compression from 'compression'
import session from 'express-session'
Expand Down Expand Up @@ -39,6 +40,8 @@ app.use(
})
)

app.use(cors())

app.use('/', appRoutes)

process.env.NODE_ENV !== 'test' &&
Expand Down

0 comments on commit d2876e7

Please sign in to comment.