diff --git a/dashboard/setup.html b/dashboard/setup.html
new file mode 100644
index 0000000..7104327
--- /dev/null
+++ b/dashboard/setup.html
@@ -0,0 +1,121 @@
+
+
+
+
+
+
+
+ Spaxel — Setup
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/mothership/cmd/mothership/main.go b/mothership/cmd/mothership/main.go
index cb223f6..5d80748 100644
--- a/mothership/cmd/mothership/main.go
+++ b/mothership/cmd/mothership/main.go
@@ -3952,6 +3952,36 @@ func main() {
http.NotFound(w, r)
})
+ r.Get("/live", func(w http.ResponseWriter, r *http.Request) {
+ staticDir := cfg.StaticDir
+ if staticDir == "" {
+ staticDir = findDashboardDir()
+ }
+ if staticDir != "" {
+ livePath := filepath.Join(staticDir, "live.html")
+ if _, err := os.Stat(livePath); err == nil {
+ http.ServeFile(w, r, livePath)
+ return
+ }
+ }
+ http.NotFound(w, r)
+ })
+
+ r.Get("/setup", func(w http.ResponseWriter, r *http.Request) {
+ staticDir := cfg.StaticDir
+ if staticDir == "" {
+ staticDir = findDashboardDir()
+ }
+ if staticDir != "" {
+ setupPath := filepath.Join(staticDir, "setup.html")
+ if _, err := os.Stat(setupPath); err == nil {
+ http.ServeFile(w, r, setupPath)
+ return
+ }
+ }
+ http.NotFound(w, r)
+ })
+
// Serve dashboard static files
staticDir := cfg.StaticDir
if staticDir == "" {