公共路由前缀

To set default path (route prefix), use setGlobalPrefix() method of INestApplication object. Example:

使用INestApplication对象的setGlobalPrefix()方法可以设置默认路径(route prefix)

const app = NestFactory.create(ApplicationModule);
app.setGlobalPrefix('api');

results matching ""

    No results matching ""