Files
openlan/pkg/api/vxlan.go
2024-01-02 11:14:54 +08:00

21 lines
356 B
Go
Executable File

package api
import (
"net/http"
"github.com/gorilla/mux"
)
type VxLAN struct {
Switcher Switcher
}
func (l VxLAN) Router(router *mux.Router) {
router.HandleFunc("/api/vxlan", l.List).Methods("GET")
router.HandleFunc("/api/vxlan/{id}", l.List).Methods("GET")
}
func (l VxLAN) List(w http.ResponseWriter, r *http.Request) {
ResponseJson(w, nil)
}