|
@@ -2,7 +2,6 @@ import express from 'express'
|
|
import cors from 'cors'
|
|
import cors from 'cors'
|
|
import bodyParser from 'body-parser'
|
|
import bodyParser from 'body-parser'
|
|
import mongoose from 'mongoose'
|
|
import mongoose from 'mongoose'
|
|
-import bhttp from 'bhttp'
|
|
|
|
import config from './config/database'
|
|
import config from './config/database'
|
|
|
|
|
|
mongoose.connect(config.database)
|
|
mongoose.connect(config.database)
|
|
@@ -31,4 +30,4 @@ app.use('/api', verify)
|
|
app.use('/api', apiRoutes)
|
|
app.use('/api', apiRoutes)
|
|
|
|
|
|
app.listen(port)
|
|
app.listen(port)
|
|
-console.log(`Server running on port ${port}.`)
|
|
|
|
|
|
+console.log(`Server running on port ${port}.`)
|