mirror of
https://github.com/luscis/openlan.git
synced 2025-10-05 16:47:11 +08:00
21 lines
356 B
Go
Executable File
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)
|
|
}
|