소스 검색

:art: Add a kernel API `/api/system/getWorkspaceInfo` https://github.com/siyuan-note/siyuan/issues/13300

Daniel 7 달 전
부모
커밋
041c050d98
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      kernel/api/system.go

+ 1 - 0
kernel/api/system.go

@@ -41,6 +41,7 @@ func getWorkspaceInfo(c *gin.Context) {
 
 
 	ret.Data = map[string]any{
 	ret.Data = map[string]any{
 		"workspaceDir": util.WorkspaceDir,
 		"workspaceDir": util.WorkspaceDir,
+		"siyuanVer":    util.Ver,
 	}
 	}
 }
 }