File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1212
1313import 'reflect-metadata' ;
1414import { App } from './core/App' ;
15- import { CustomConfig } from './config/CustomConfig ' ;
15+ import { CustomHeaderConfig } from './config/CustomHeaderConfig ' ;
1616
1717export 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.
2424app . bootstrap ( ) ;
Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ import { App, Configurable } from '../core/App';
1313import { 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 ) ;
You can’t perform that action at this time.
0 commit comments