fix welcome mode redirect - add missing /api/health endpoint

- swap Live Operations to main screenshots section
- remove WebSocket reference from future features
- better screenshot layout with Live Operations prominent
This commit is contained in:
Fimeg
2025-10-31 08:21:49 -04:00
parent b9dcdcf71b
commit 982750e694
2 changed files with 13 additions and 8 deletions

View File

@@ -23,10 +23,13 @@ func startWelcomeModeServer() {
// Add CORS middleware
router.Use(middleware.CORSMiddleware())
// Health check (both endpoints for compatibility)
// Health check (all endpoints for compatibility)
router.GET("/health", func(c *gin.Context) {
c.JSON(200, gin.H{"status": "waiting for configuration"})
})
router.GET("/api/health", func(c *gin.Context) {
c.JSON(200, gin.H{"status": "waiting for configuration"})
})
router.GET("/api/v1/health", func(c *gin.Context) {
c.JSON(200, gin.H{"status": "waiting for configuration"})
})
@@ -159,6 +162,9 @@ func main() {
router.GET("/health", func(c *gin.Context) {
c.JSON(200, gin.H{"status": "healthy"})
})
router.GET("/api/health", func(c *gin.Context) {
c.JSON(200, gin.H{"status": "healthy"})
})
// API routes
api := router.Group("/api/v1")