mirror of
https://github.com/lejianwen/rustdesk-api.git
synced 2026-02-02 20:30:39 +00:00
feat: Add SysInfoVer endpoint and AppService for version retrieval
This commit is contained in:
@@ -56,3 +56,9 @@ func (p *Peer) SysInfo(c *gin.Context) {
|
||||
//直接响应文本
|
||||
c.String(http.StatusOK, "SYSINFO_UPDATED")
|
||||
}
|
||||
|
||||
func (p *Peer) SysInfoVer(c *gin.Context) {
|
||||
//读取resources/version文件
|
||||
v := service.AllService.AppService.GetAppVersion()
|
||||
c.String(http.StatusOK, v)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user