add api checkOutbound #761

This commit is contained in:
Alireza Ahmadi
2026-02-11 21:52:31 +01:00
parent d996e7171b
commit 688e0c3e23
5 changed files with 61 additions and 0 deletions
+7
View File
@@ -396,3 +396,10 @@ func (a *ApiService) GetSingboxConfig(c *gin.Context) {
c.Header("Content-Disposition", "attachment; filename=config_"+time.Now().Format("20060102-150405")+".json")
c.Writer.Write(rawConfig)
}
func (a *ApiService) GetCheckOutbound(c *gin.Context) {
tag := c.Query("tag")
link := c.Query("link")
result := a.ConfigService.CheckOutbound(tag, link)
jsonObj(c, result, nil)
}