Skip to content

Commit 67c87ec

Browse files
committed
fix structure main
1 parent fb61795 commit 67c87ec

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

src/config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ export interface MongoosePlugin {
1313
export interface ConfigInstance {
1414
application: {
1515
bodyParser: {
16-
limit: string
17-
}
18-
}
19-
helmet: HelmetOptions
16+
limit: string;
17+
};
18+
};
19+
helmet: HelmetOptions;
2020
mongoose: {
2121
uri: string;
2222
options: MongooseModuleOptions;

src/main.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@ declare const module: any;
6666
});
6767
// eslint-disable-next-line
6868
app.use((_: any, res: Response, next: () => void) => {
69-
res.removeHeader('x-powered-by')
70-
next()
71-
})
72-
app.use(passport.initialize())
69+
res.removeHeader('x-powered-by');
70+
next();
71+
});
72+
app.use(passport.initialize());
7373
app.use(rawBodyBuffer(cfg?.application?.bodyParser));
74-
app.use(cookieParser())
74+
app.use(cookieParser());
7575
if (process.env.production !== 'production') {
7676
// eslint-disable-next-line @typescript-eslint/no-var-requires
7777
(await import('./swagger')).default(app);

src/swagger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default function swagger(app: NestExpressApplication) {
1515
.addBearerAuth({ type: 'http', scheme: 'bearer', bearerFormat: 'JWT' }, 'access-token')
1616
.build();
1717
const document = SwaggerModule.createDocument(app, build);
18-
const theme = new SwaggerTheme('v3')
18+
const theme = new SwaggerTheme('v3');
1919
SwaggerModule.setup(config.get<string>('swagger.path'), app, document, {
2020
...config.get<SwaggerCustomOptions>('swagger.options'),
2121
explorer: true,

0 commit comments

Comments
 (0)