|
1 | | -import 'reflect-metadata'; |
| 1 | +import { CREDENTIALS, LOG_FORMAT, NODE_ENV, PORT } from '@config'; |
| 2 | +import type { Routes } from '@interfaces/routes.interface'; |
| 3 | +import { ErrorMiddleware } from '@middlewares/error.middleware'; |
| 4 | +import { logger, stream } from '@utils/logger'; |
2 | 5 | import compression from 'compression'; |
3 | 6 | import cookieParser from 'cookie-parser'; |
4 | 7 | import cors from 'cors'; |
5 | 8 | import express from 'express'; |
6 | 9 | import helmet from 'helmet'; |
7 | 10 | import hpp from 'hpp'; |
8 | 11 | import morgan from 'morgan'; |
| 12 | +import 'reflect-metadata'; |
9 | 13 | import swaggerJSDoc from 'swagger-jsdoc'; |
10 | 14 | import swaggerUi from 'swagger-ui-express'; |
11 | | -import { NODE_ENV, PORT, LOG_FORMAT, ORIGIN, CREDENTIALS } from '@config'; |
12 | | -import type { Routes } from '@interfaces/routes.interface'; |
13 | | -import { ErrorMiddleware } from '@middlewares/error.middleware'; |
14 | | -import { logger, stream } from '@utils/logger'; |
15 | | -import { loadAllLocales } from './i18n/i18n-util.sync'; |
16 | | -import { getPreferredLocale } from './i18n/get-preferred-locale'; |
17 | 15 | import Container from 'typedi'; |
18 | 16 | import { LOCALE_KEY } from './constants'; |
19 | 17 | import { LocaleService } from './i18n/ctx'; |
| 18 | +import { getPreferredLocale } from './i18n/get-preferred-locale'; |
| 19 | +import { loadAllLocales } from './i18n/i18n-util.sync'; |
20 | 20 |
|
21 | 21 | Container.set(LOCALE_KEY, new LocaleService('en')); |
22 | 22 |
|
|
0 commit comments