Przeglądaj źródła

feat: 添加全局路由

huangzhichao 4 tygodni temu
rodzic
commit
85645e0e3f
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      src/main.ts

+ 1 - 0
src/main.ts

@@ -7,6 +7,7 @@ async function bootstrap() {
   app.enableCors({
     origin: '*'
   })
+  app.setGlobalPrefix('webserver')
   await app.listen(3000, '0.0.0.0')
 }
 bootstrap()