mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-05 06:10:26 +08:00
23 lines
615 B
Go
23 lines
615 B
Go
|
|
package iplibrary
|
||
|
|
|
||
|
|
import (
|
||
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/servers/components/componentutils"
|
||
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/web/helpers"
|
||
|
|
"github.com/iwind/TeaGo"
|
||
|
|
)
|
||
|
|
|
||
|
|
func init() {
|
||
|
|
TeaGo.BeforeStart(func(server *TeaGo.Server) {
|
||
|
|
server.
|
||
|
|
Helper(helpers.NewUserMustAuth()).
|
||
|
|
Helper(NewHelper()).
|
||
|
|
Helper(componentutils.NewComponentHelper()).
|
||
|
|
Prefix("/servers/components/ip-library").
|
||
|
|
Get("", new(IndexAction)).
|
||
|
|
GetPost("/uploadPopup", new(UploadPopupAction)).
|
||
|
|
Post("/delete", new(DeleteAction)).
|
||
|
|
Get("/download", new(DownloadAction)).
|
||
|
|
EndAll()
|
||
|
|
})
|
||
|
|
}
|