Nestjs 增加全局前缀

文档

  const app = await NestFactory.create(AppModule);
  app.setGlobalPrefix('v1'); // http://localhost:5001/test  =>  http://localhost:5001/v1/test
posted @ 2018-10-24 22:20  Ajanuw  阅读(1556)  评论(0编辑  收藏  举报