Assets routes should be parsed after server routes so /add-to-collection URL will work
This commit is contained in:
parent
20a5ac5ec3
commit
95f6105a8b
1 changed files with 2 additions and 1 deletions
|
@ -113,11 +113,12 @@ app.get(
|
|||
passport.authenticate('basic', { session: false }), (req, res) => res.json(req.user)
|
||||
);
|
||||
|
||||
app.use(assetRoutes);
|
||||
// this is supposed to be TEMPORARY -- until i figure out
|
||||
// isomorphic rendering
|
||||
app.use('/', serverRoutes);
|
||||
|
||||
app.use(assetRoutes);
|
||||
|
||||
app.use('/', embedRoutes);
|
||||
app.get('/auth/github', passport.authenticate('github'));
|
||||
app.get('/auth/github/callback', passport.authenticate('github', { failureRedirect: '/login' }), (req, res) => {
|
||||
|
|
Loading…
Reference in a new issue