2
0
Эх сурвалжийг харах

🔧 chore(api): temporarily enable API documentation endpoint

- 修改条件判断为固定值true以强制启用文档端点
- 保留原生产环境判断逻辑作为注释以便后续恢复
yourname 4 сар өмнө
parent
commit
f7578cd130
1 өөрчлөгдсөн 2 нэмэгдсэн , 1 устгасан
  1. 2 1
      src/server/api.ts

+ 2 - 1
src/server/api.ts

@@ -37,7 +37,8 @@ api.openAPIRegistry.registerComponent('securitySchemes','bearerAuth',{
 })
 
 // OpenAPI documentation endpoint
-if(!import.meta.env.PROD){
+// !import.meta.env.PROD
+if(1){
   api.doc31('/doc', {
     openapi: '3.1.0',
     info: {