aboutsummaryrefslogtreecommitdiffstats
path: root/app.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2017-04-17 19:15:12 -0700
committerAdam Soltys <[email protected]>2017-04-17 19:15:12 -0700
commite70a7bad02a23651a5c42a70a289ff7327589bbe (patch)
tree55bd73c0329a1cfd7bd49de0153e747a07ca3d9b /app.js
parent73adacab3e5ebf453e3fe8b878d8656b5d07d8ff (diff)
downloadcoinos-server-e70a7bad02a23651a5c42a70a289ff7327589bbe.tar.gz
coinos-server-e70a7bad02a23651a5c42a70a289ff7327589bbe.zip
jwt login
Diffstat (limited to 'app.js')
-rw-r--r--app.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/app.js b/app.js
index 9e246aef..a8c7c908 100644
--- a/app.js
+++ b/app.js
@@ -1,6 +1,5 @@
const express = require('express')
const bodyParser = require('body-parser')
-const path = require('path')
const passport = require('./passport')
const cache = require('./cache')
@@ -8,7 +7,7 @@ app = express()
app.enable('trust proxy')
app.use(require('./blockcypher'))
app.use(bodyParser.urlencoded({ extended: true }))
-app.use(bodyParser.json({ type: 'application/vnd.api+json' }))
+app.use(bodyParser.json())
app.use(passport.initialize())
const users = require("./routes/users")