Skip to content

Commit

Permalink
paths
Browse files Browse the repository at this point in the history
  • Loading branch information
feross committed Nov 11, 2019
1 parent 83157e7 commit 6faf16b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exercises/common/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ function createServer (port, serverDirname) {
const app = express()

app.set('view engine', 'ejs')
app.set('views', [serverDirname, COMMON_PATH])
app.set('views', [serverDirname, COMMON_PATH, ROOT_PATH])

const router = new Router()
app.use(router)

router.use(express.static(join(serverDirname, '..', 'static')))
router.use(express.static(join(serverDirname, 'static')))
router.use(express.static(join(COMMON_PATH, 'static')))
router.use(express.static(join(ROOT_PATH, 'static')))

Expand Down

0 comments on commit 6faf16b

Please sign in to comment.