Skip to content

Commit

Permalink
Отключит заголовок, поменяет знак троеточия
Browse files Browse the repository at this point in the history
  • Loading branch information
AdonaiJehosua committed Nov 5, 2024
1 parent 73fed94 commit 368ca59
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/rest/rest.application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export class RestApplication {

) {
this.server = express();
this.server.disable('x-powered-by');
}

private async _initDb() {
Expand All @@ -37,7 +38,7 @@ export class RestApplication {
return this.databaseClient.connect(mongoUri);
}

private async _initServer() {
private async _startServer() {
const port = this.config.get('PORT');
this.server.listen(port);
}
Expand Down Expand Up @@ -77,7 +78,7 @@ export class RestApplication {
this.logger.info('Exception filters initialization completed');

this.logger.info('Try to init server...');
await this._initServer();
await this._startServer();
this.logger.info(`Server started on http://localhost:${this.config.get('PORT')}`);
}
}
2 changes: 1 addition & 1 deletion src/shared/modules/comment/comment.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class CommentController extends BaseController {
) {
super(logger);

this.logger.info('Register routes for CommentController');
this.logger.info('Register routes for CommentController...');

this.addRoute({
path: '/:offerId',
Expand Down

0 comments on commit 368ca59

Please sign in to comment.