feat(legacy): implement interfaces handler
This commit is contained in:
parent
cc1de7c776
commit
43070cf76b
@ -23,3 +23,16 @@ func (s *LegacyServer) handleHealth(c *gin.Context) {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// handleInterfaces 获取可用接口列表处理函数
|
||||||
|
func (s *LegacyServer) handleInterfaces(c *gin.Context) {
|
||||||
|
responseData := map[string]any{
|
||||||
|
"availableInterfaces": config.Config.AvailableInterfaces,
|
||||||
|
"defaultInterface": config.Config.DefaultInterface,
|
||||||
|
}
|
||||||
|
|
||||||
|
c.JSON(http.StatusOK, define.ApiResponse{
|
||||||
|
Status: "success",
|
||||||
|
Data: responseData,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user