add api endpoint for services
This commit is contained in:
+1
-1
@@ -61,7 +61,7 @@ func (a *APIv2Handler) getHandler(c *gin.Context) {
|
||||
switch action {
|
||||
case "load":
|
||||
a.ApiService.LoadData(c)
|
||||
case "inbounds", "outbounds", "endpoints", "tls", "clients", "config":
|
||||
case "inbounds", "outbounds", "endpoints", "services", "tls", "clients", "config":
|
||||
err := a.ApiService.LoadPartialData(c, []string{action})
|
||||
if err != nil {
|
||||
jsonMsg(c, action, err)
|
||||
|
||||
Reference in New Issue
Block a user