Skip to content

Commit

Permalink
fix(express): fixed express exports
Browse files Browse the repository at this point in the history
  • Loading branch information
foundrium committed Dec 3, 2021
1 parent bb7e3c0 commit e1c79a6
Show file tree
Hide file tree
Showing 12 changed files with 638 additions and 134 deletions.
7 changes: 2 additions & 5 deletions examples/authentication/regular-web-app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ import cookieParser from 'cookie-parser';
import indexRouter from './routes/index.js';
import usersRouter from './routes/user.js';

import hasteAuthRouter from './routes/hasteAuthRoutes.js';
import hasteUserInViews from './lib/middleware/hasteUserInViews.js';
import HasteStrategy from './lib/middleware/hasteStrategy.js';
import { hasteAuthRoutes, hasteUserInViews, HasteStrategy } from '@hastearcade/haste-express';

config();

Expand All @@ -32,7 +30,6 @@ passport.deserializeUser(function (user, done) {
done(null, user);
});

// config express-session
const sess = {
secret: 'shhhh', // this would change in a real application
resave: false,
Expand All @@ -57,7 +54,7 @@ app.use(urlencoded({ extended: false }));
app.use(stc(join('.', 'public')));

app.use(hasteUserInViews());
app.use('/', hasteAuthRouter);
app.use('/', hasteAuthRoutes);
app.use('/', indexRouter);
app.use('/', usersRouter);

Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit e1c79a6

Please sign in to comment.