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

@@ -37,9 +37,9 @@ RedFlag lets you manage software updates across all your servers from one dashbo
|-----------|---------------|-------------------| |-----------|---------------|-------------------|
| ![Dashboard](Screenshots/RedFlag%20Default%20Dashboard.png) | ![Linux Agent](Screenshots/RedFlag%20Linux%20Agent%20Details.png) | ![Updates](Screenshots/RedFlag%20Updates%20Dashboard.png) | | ![Dashboard](Screenshots/RedFlag%20Default%20Dashboard.png) | ![Linux Agent](Screenshots/RedFlag%20Linux%20Agent%20Details.png) | ![Updates](Screenshots/RedFlag%20Updates%20Dashboard.png) |
| Windows Update History | History Tracking | Docker Integration | | Live Operations |
|------------------------|------------------|-------------------| |-----------------|
| ![Windows History](Screenshots/RedFlag%20Windows%20Agent%20History%20Extended.png) | ![History](Screenshots/RedFlag%20History%20Dashboard.png) | ![Docker](Screenshots/RedFlag%20Docker%20Dashboard.png) | | ![Live Ops](Screenshots/RedFlag%20Live%20Operations%20-%20Failed%20Dashboard.png) |
<details> <details>
<summary><b>More Screenshots</b> (click to expand)</summary> <summary><b>More Screenshots</b> (click to expand)</summary>
@@ -52,9 +52,9 @@ RedFlag lets you manage software updates across all your servers from one dashbo
|---------------------|----------------------|------------| |---------------------|----------------------|------------|
| ![Linux History](Screenshots/RedFlag%20Linux%20Agent%20History%20Extended.png) | ![Windows Agent](Screenshots/RedFlag%20Windows%20Agent%20Details.png) | ![Agent List](Screenshots/RedFlag%20Agent%20List.png) | | ![Linux History](Screenshots/RedFlag%20Linux%20Agent%20History%20Extended.png) | ![Windows Agent](Screenshots/RedFlag%20Windows%20Agent%20Details.png) | ![Agent List](Screenshots/RedFlag%20Agent%20List.png) |
| Live Operations | | Windows Update History | History Tracking | Docker Integration |
|-----------------| |------------------------|------------------|-------------------|
| ![Live Ops](Screenshots/RedFlag%20Live%20Operations%20-%20Failed%20Dashboard.png) | | ![Windows History](Screenshots/RedFlag%20Windows%20Agent%20History%20Extended.png) | ![History](Screenshots/RedFlag%20History%20Dashboard.png) | ![Docker](Screenshots/RedFlag%20Docker%20Dashboard.png) |
</details> </details>
@@ -191,7 +191,6 @@ For production deployments:
**Planned Features:** **Planned Features:**
- Proxmox VM/container integration - Proxmox VM/container integration
- Agent auto-update system - Agent auto-update system
- WebSocket real-time updates
- Mobile-responsive dashboard improvements - Mobile-responsive dashboard improvements
--- ---

View File

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