Global Prefix

In order to set a prefix for each route registered in the application at once, you can use the setGlobalPrefix() method of the INestApplication instance.

TypeScript

const app = await NestFactory.create(ApplicationModule);
app.setGlobalPrefix('v1');
  • Global Prefix

Support us

Nest is an MIT-licensed open source project. It can grow thanks to the support by these awesome people. If you'd like to join them, please read more here.

Principal Sponsor

Sponsors / Backers