| 1 | import { type INestApplication, ValidationPipe } from '@nestjs/common'; |
| 2 | |
| 3 | import { DomainErrorFilter } |
| 4 | import { GIT_TRANSPORT_ROUTES } |
| 5 | |
| 6 | /** What every running instance needs, shared by `main.ts` and the end-to-end suite so the two cannot drift. The app must be created with `bodyParser: false`. */ |
| 7 | export function configureApp(app |
| 8 | app.useGlobalPipes(new |
| 9 | app.useGlobalFilters(new |
| 10 | // offset all CRUD apis to /api prefix so it does not conflict with git's rest stuff |
| 11 | app.setGlobalPrefix('/api |
| 12 | } |