Merge pull request #33 from christroutner/unstable

fix(api docs): Moving port to 5001, and making api docs the default f…
This commit is contained in:
Chris Troutner
2019-06-02 20:33:19 -07:00
committed by GitHub
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ async function startServer () {
app.use(errorMiddleware())
// Used to generate the docs.
app.use(convert(mount('/docs', serve(`${process.cwd()}/docs`))))
app.use(mount('/', serve(`${process.cwd()}/docs`)))
// User Authentication
require('../config/passport')
+1 -1
View File
@@ -4,5 +4,5 @@
*/
module.exports = {
port: process.env.PORT || 5000
port: process.env.PORT || 5001
}
+1 -1
View File
@@ -31,7 +31,7 @@
},
"repository": "christroutner/koa-api-boilerplate",
"dependencies": {
"apidoc": "^0.17.6",
"apidoc": "^0.17.7",
"bcryptjs": "^2.4.3",
"glob": "^7.0.0",
"jsonwebtoken": "^8.3.0",
+1 -1
View File
@@ -2,7 +2,7 @@ const mongoose = require('mongoose')
const rp = require('request-promise')
const config = require('../config')
const LOCALHOST = 'http://localhost:5000'
const LOCALHOST = `http://localhost:${config.port}`
// Remove all collections from the DB.
async function cleanDb () {