TS2021: Expose Register handler in Noise

This commit is contained in:
Juan Font Alonso
2022-03-27 22:25:21 +02:00
parent 323a7d9c2e
commit 834f39db31
5 changed files with 270 additions and 4 deletions

2
app.go
View File

@@ -513,6 +513,8 @@ func (h *Headscale) createRouter(grpcMux *runtime.ServeMux) *gin.Engine {
func (h *Headscale) createNoiseRouter() *gin.Engine {
router := gin.Default()
router.POST("/machine/register", h.NoiseRegistrationHandler)
return router
}