Skip to content

Commit

Permalink
Merge tag '7.7.23'
Browse files Browse the repository at this point in the history
  • Loading branch information
mingwho committed Jul 23, 2019
2 parents 05372ba + 2ca6bd3 commit 74793ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const middlewares = require("./middlewares");
const config = require("./config");
const utils = require("./utils");
const { envOr } = utils;
const path = require("path");

//FP
const pipe = (...fn) => input =>
Expand Down Expand Up @@ -36,8 +37,7 @@ function detectApiVersionMiddleware(req, res, next) {
/**
* Exposes a static files based on passed path
*/
function staticPath(app, path) {
const npath = path || "/../../public";
function staticPath(app, npath = "/../../public") {
app.use("/", express.static(path.join(__dirname, npath)));
}

Expand Down

0 comments on commit 74793ff

Please sign in to comment.