Explorar el Código

feat: 添加全局路由

huangzhichao hace 4 semanas
padre
commit
85645e0e3f
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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()