Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'web/controller/setting.go')
-rw-r--r--web/controller/setting.go17
1 files changed, 0 insertions, 17 deletions
diff --git a/web/controller/setting.go b/web/controller/setting.go
index 248f3ee5..3aed69e6 100644
--- a/web/controller/setting.go
+++ b/web/controller/setting.go
@@ -3,7 +3,6 @@ package controller
import (
"errors"
"time"
- "x-ui/util/common"
"x-ui/web/entity"
"x-ui/web/service"
"x-ui/web/session"
@@ -45,7 +44,6 @@ func (a *SettingController) initRouter(g *gin.RouterGroup) {
g.GET("/getDefaultJsonConfig", a.getDefaultJsonConfig)
g.POST("/updateUserSecret", a.updateSecret)
g.POST("/getUserSecret", a.getUserSecret)
- g.GET("/searchDatafiles", a.searchDatafiles)
}
func (a *SettingController) getAllSetting(c *gin.Context) {
@@ -159,18 +157,3 @@ func (a *SettingController) getUserSecret(c *gin.Context) {
jsonObj(c, user, nil)
}
}
-
-func (a *SettingController) searchDatafiles(c *gin.Context) {
- searchString := c.Query("query")
- if searchString == "" {
- err := common.NewError("data query parameter is empty")
- jsonMsg(c, "Invalid query:", err)
- return
- }
- found, err := a.settingService.SearchDatafiles(searchString)
- if err != nil {
- jsonMsg(c, "Something went wrong!", err)
- return
- }
- jsonObj(c, found, nil)
-}