mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-30 02:43:05 +00:00
3683d3e82f
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
15 lines
328 B
Go
15 lines
328 B
Go
//go:build ts2019
|
|
|
|
package hscontrol
|
|
|
|
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)
|
|
}
|