2022-11-04 04:26:33 -06:00
|
|
|
//go:build ts2019
|
|
|
|
|
2023-05-10 01:24:05 -06:00
|
|
|
package hscontrol
|
2022-11-04 04:26:33 -06:00
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
|
|
|
|
"github.com/gorilla/mux"
|
|
|
|
)
|
|
|
|
|
|
|
|
func (h *Headscale) addLegacyHandlers(router *mux.Router) {
|
|
|
|
router.HandleFunc("/machine/{mkey}/map", h.PollNetMapHandler).
|
|
|
|
Methods(http.MethodPost)
|
|
|
|
router.HandleFunc("/machine/{mkey}", h.RegistrationHandler).Methods(http.MethodPost)
|
|
|
|
}
|