Skip to content

Commit cea55f4

Browse files
author
hirsch88
committed
Rename CustomHeaderConfig
1 parent a42a813 commit cea55f4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/app.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212

1313
import 'reflect-metadata';
1414
import { App } from './core/App';
15-
import { CustomConfig } from './config/CustomConfig';
15+
import { CustomHeaderConfig } from './config/CustomHeaderConfig';
1616

1717
export const app = new App();
1818

1919

2020
// Here you can add more custom configurations
21-
app.configure(new CustomConfig());
21+
app.configure(new CustomHeaderConfig());
2222

2323
// Launch the server with all his awesome features.
2424
app.bootstrap();
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ import { App, Configurable } from '../core/App';
1313
import { Environment } from '../core/helpers/Environment';
1414

1515

16-
export class CustomConfig implements Configurable {
16+
export class CustomHeaderConfig implements Configurable {
1717

1818
private log = new Logger(__filename);
1919

2020
public configure(app: App): void {
21-
this.log.debug('configuring', app.Express.get('port'));
21+
this.log.debug('Add custom headers');
2222

2323
app.Express.use((req: express.Request, res: express.Response, next: express.NextFunction) => {
2424
res.setHeader('X-API-VERSION', Environment.getPkg().version);

0 commit comments

Comments
 (0)