Files
openlan/pkg/api/url.go
Daniel Ding a1fd32cb0b
Some checks are pending
Coverage CI / build (push) Waiting to run
CodeQL / Analyze (go) (push) Waiting to run
Ubuntu CI / build (push) Waiting to run
fea: control snat by cmd.
2024-10-22 10:48:33 +08:00

31 lines
814 B
Go
Executable File

package api
import "github.com/gorilla/mux"
func Add(router *mux.Router, switcher Switcher) {
Link{Switcher: switcher}.Router(router)
User{}.Router(router)
Neighbor{}.Router(router)
Point{}.Router(router)
Network{Switcher: switcher}.Router(router)
OnLine{}.Router(router)
Lease{}.Router(router)
Server{Switcher: switcher}.Router(router)
Device{}.Router(router)
VPNClient{}.Router(router)
PProf{}.Router(router)
Config{Switcher: switcher}.Router(router)
Version{}.Router(router)
Log{}.Router(router)
OpenAPI{}.Router(router)
ZTrust{}.Router(router)
QosApi{}.Router(router)
Output{Switcher: switcher}.Router(router)
ACL{}.Router(router)
Route{Switcher: switcher}.Router(router)
IPSec{}.Router(router)
FindHop{}.Router(router)
Rate{Switcher: switcher}.Router(router)
SNAT{}.Router(router)
}