Skip to content

Commit

Permalink
fix: frontpage not shown
Browse files Browse the repository at this point in the history
  • Loading branch information
heycalmdown committed Dec 1, 2018
1 parent 81714d2 commit bea486f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ app.use(logger('dev'));
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: false }));
app.use(cookieParser());
app.use(express.static(path.join(__dirname, '../node_modules/reveal.js')));
app.use('/css', express.static(path.join(__dirname, '../node_modules/reveal.js/css')));
app.use('/js', express.static(path.join(__dirname, '../node_modules/reveal.js/js')));
app.use('/lib', express.static(path.join(__dirname, '../node_modules/reveal.js/lib')));
app.use('/plugin', express.static(path.join(__dirname, '../node_modules/reveal.js/plugin')));

app.use('/', routes);
app.use('/users', users);
Expand Down
2 changes: 1 addition & 1 deletion src/routes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function pickSummary(page: Content): { id: string, title: string } {
}

/* GET home page. */
router.get('/', (req, res, next) => {
router.get('/', (_req, res) => {
const p = [
Promise.all(pinnedPages.map(id => confluency.getPage(id).then(pickSummary))),
confluency.search('label=miniseminar').then(data => _.map(data, pickSummary))
Expand Down

0 comments on commit bea486f

Please sign in to comment.