Global prefix
In order to set a prefix for each route registered in the HTTP application at once, you can use the setGlobalPrefix()
method of the INestApplication
instance.
const app = await NestFactory.create(ApplicationModule);
app.setGlobalPrefix('v1');