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.

  1. const app = await NestFactory.create(ApplicationModule);
  2. app.setGlobalPrefix('v1');