Skip to content

Commit 05880ed

Browse files
committed
add api endpoint for services
1 parent 44fd5f7 commit 05880ed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api/apiHandler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func (a *APIHandler) getHandler(c *gin.Context) {
6868
a.ApiService.Logout(c)
6969
case "load":
7070
a.ApiService.LoadData(c)
71-
case "inbounds", "outbounds", "endpoints", "tls", "clients", "config":
71+
case "inbounds", "outbounds", "endpoints", "services", "tls", "clients", "config":
7272
err := a.ApiService.LoadPartialData(c, []string{action})
7373
if err != nil {
7474
jsonMsg(c, action, err)

api/apiV2Handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func (a *APIv2Handler) getHandler(c *gin.Context) {
6161
switch action {
6262
case "load":
6363
a.ApiService.LoadData(c)
64-
case "inbounds", "outbounds", "endpoints", "tls", "clients", "config":
64+
case "inbounds", "outbounds", "endpoints", "services", "tls", "clients", "config":
6565
err := a.ApiService.LoadPartialData(c, []string{action})
6666
if err != nil {
6767
jsonMsg(c, action, err)

0 commit comments

Comments
 (0)