clone from danieldin95

This commit is contained in:
sicheng
2022-07-29 23:38:54 +08:00
commit ac4f79bbf4
1931 changed files with 568263 additions and 0 deletions

23
pkg/api/url.go Executable file
View File

@@ -0,0 +1,23 @@
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{}.Router(router)
OnLine{}.Router(router)
Lease{}.Router(router)
Server{Switcher: switcher}.Router(router)
Device{}.Router(router)
VPNClient{}.Router(router)
PProf{}.Router(router)
VxLAN{}.Router(router)
Esp{}.Router(router)
EspState{}.Router(router)
EspPolicy{}.Router(router)
Config{Switcher: switcher}.Router(router)
Version{}.Router(router)
}