Skip to content

Commit

Permalink
Fix size upload
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasgehl3n committed Nov 26, 2023
1 parent b02ac32 commit 04d9f17
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class Application {
// Middleware para lidar com preflight (solicitações OPTIONS)
this.express.options('*', cors(corsOptions));
this.express.use(express.json());

this.express.use(express.urlencoded({ extended: true }));
this.express.use(AuthenticationValidator);
}
Expand All @@ -69,6 +69,9 @@ class Application {
this.express.use(flash())
this.express.use(passport.initialize());
this.express.use(passport.session());
this.express.use(express.json({ limit: '50mb' }));
this.express.use(express.urlencoded({ limit: '50mb' }));

PassportManager.InitAuthenticateMethods();
}
}
Expand Down

0 comments on commit 04d9f17

Please sign in to comment.