Skip to content

Commit

Permalink
src/panel: Fix dist path
Browse files Browse the repository at this point in the history
  • Loading branch information
sogehige committed Aug 26, 2018
1 parent a24d3f4 commit 7106739
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bot/panel.js
Expand Up @@ -42,12 +42,12 @@ function Panel () {
})

// static routing
app.use('/dist', express.static(path.join(__dirname, '..', '..', 'public', 'dist')))
app.use('/dist', express.static(path.join(__dirname, '..', 'public', 'dist')))
app.get('/popout/', this.authUser, function (req, res) {
res.sendFile(path.join(__dirname, '..', '..', 'public', 'popout.html'))
res.sendFile(path.join(__dirname, '..', 'public', 'popout.html'))
})
app.get('/oauth/:page', this.authUser, function (req, res) {
res.sendFile(path.join(__dirname, '..', '..', 'public', 'oauth', req.params.page + '.html'))
res.sendFile(path.join(__dirname, '..', 'public', 'oauth', req.params.page + '.html'))
})
app.get('/auth/token.js', function (req, res) {
const origin = req.headers.referer ? req.headers.referer.substring(0, req.headers.referer.length - 1) : undefined
Expand Down

0 comments on commit 7106739

Please sign in to comment.