fix(api docs): Moving port to 5001, and making api docs the default front end

This commit is contained in:
Chris Troutner
2019-06-02 20:23:28 -07:00
parent c98ae3e89c
commit f2decae6aa
3 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -34,7 +34,8 @@ async function startServer () {
app.use(errorMiddleware())
// Used to generate the docs.
app.use(convert(mount('/docs', serve(`${process.cwd()}/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",