Skip to content

Commit

Permalink
fix: 빌드
Browse files Browse the repository at this point in the history
  • Loading branch information
kyY00n committed Aug 20, 2023
1 parent 7567b18 commit 49051dc
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/routes/ballotRouter.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
import { Router } from 'express';
import { Router, RequestHandler } from 'express';
import { body } from 'express-validator';
import { BallotController } from '../controllers';
import auth from '../middlewares/auth';
import flexibleAuth from '../middlewares/flexibleAuth';
import session from 'express-session';
import uidSetter from '../middlewares/session/uidSetter';
import MongoStore from 'connect-mongo';
import config from '../config';
import cors from 'cors';

const router = Router();

const expressSession: express.RequestHandler = session({
const expressSession: RequestHandler = session({
secret: config.sessionKey,
store: MongoStore.create({
mongoUrl: config.mongoURI
Expand Down

0 comments on commit 49051dc

Please sign in to comment.