feat(node): pair onboard computers with the Core fleet through UI
This commit is contained in:
@@ -14,6 +14,7 @@ import (
|
||||
|
||||
type Server struct {
|
||||
Store *Store
|
||||
Pairing *Pairing
|
||||
Assets fs.FS
|
||||
Origin string
|
||||
Version string
|
||||
@@ -77,6 +78,9 @@ func reply(w http.ResponseWriter, status int, v any) {
|
||||
|
||||
func (s *Server) Handler() http.Handler {
|
||||
mux := http.NewServeMux()
|
||||
if s.Pairing != nil {
|
||||
s.Pairing.localRoutes(mux, s)
|
||||
}
|
||||
if s.Access != nil {
|
||||
s.accessRoutes(mux)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user