Wire up new handlers

This commit is contained in:
Kristoffer Dalby 2021-09-19 17:56:29 +01:00
parent 40c5263927
commit dfcab2b6d5
No known key found for this signature in database
GPG Key ID: 09F62DC067465735
1 changed files with 2 additions and 0 deletions

2
app.go
View File

@ -146,6 +146,8 @@ func (h *Headscale) Serve() error {
r.GET("/register", h.RegisterWebAPI)
r.POST("/machine/:id/map", h.PollNetMapHandler)
r.POST("/machine/:id", h.RegistrationHandler)
r.GET("/apple", h.AppleMobileConfig)
r.GET("/apple/:platform", h.ApplePlatformConfig)
var err error
if h.cfg.TLSLetsEncryptHostname != "" {
if !strings.HasPrefix(h.cfg.ServerURL, "https://") {