Skip to content
This repository has been archived by the owner on Mar 16, 2020. It is now read-only.

Commit

Permalink
use app.get instead of app.use for private/index.html route
Browse files Browse the repository at this point in the history
  • Loading branch information
jseppi committed May 17, 2016
1 parent 06ad2f7 commit 16a4c8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ app.use(session({ secret: process.env.SESSION_SECRET }));
app.use(passport.initialize());
app.use(passport.session());

app.use('/private/index.html', [ensureAuthenticated, ensureGithubOrg,
app.get('/private/index.html', [ensureAuthenticated, ensureGithubOrg,
addToUsers, includeBranding],
function (req, res) {
res.render('index.html');
Expand Down

0 comments on commit 16a4c8a

Please sign in to comment.