浏览代码

feat: 添加全局路由

huangzhichao 4 周之前
父节点
当前提交
85645e0e3f
共有 1 个文件被更改,包括 1 次插入0 次删除
  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()