添加、修改、删除HTTP Header时增加通用Header提示

This commit is contained in:
刘祥超
2022-10-24 15:42:18 +08:00
parent 6a920f964f
commit bf597fe41c
11 changed files with 99 additions and 7 deletions

View File

@@ -2,6 +2,7 @@ package servers
import (
"github.com/TeaOSLab/EdgeAdmin/internal/configloaders"
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/servers/headers"
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/servers/users"
"github.com/TeaOSLab/EdgeAdmin/internal/web/helpers"
"github.com/iwind/TeaGo"
@@ -26,10 +27,13 @@ func init() {
Get("/serverNamesPopup", new(ServerNamesPopupAction)).
Post("/status", new(StatusAction)).
//
// user
Post("/users/options", new(users.OptionsAction)).
Post("/users/plans", new(users.PlansAction)).
// header
Post("/headers/options", new(headers.OptionsAction)).
//
EndAll()
})