mirror of
https://github.com/blackboxprogramming/blackroad-apps.git
synced 2026-03-17 09:37:52 -05:00
All published on BlackRoad OS App Store: - Dashboard, Metrics, Vault, Agent Hub - Commander, Analytics, Monitor - Deployer, Studio, Sync - Plus the original First App Zero gatekeepers. Zero fees.
36 lines
600 B
Go
36 lines
600 B
Go
package main
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
"os"
|
|
)
|
|
|
|
func main() {
|
|
port := os.Getenv("PORT")
|
|
if port == "" {
|
|
port = "8080"
|
|
}
|
|
|
|
r := gin.Default()
|
|
|
|
r.GET("/health", func(c *gin.Context) {
|
|
c.JSON(200, gin.H{"status": "healthy", "service": "PitStop"})
|
|
})
|
|
|
|
r.GET("/", func(c *gin.Context) {
|
|
c.JSON(200, gin.H{
|
|
"name": "PitStop",
|
|
"description": "Infrastructure Dashboard & Monitoring",
|
|
"features": []string{
|
|
"Real-time metrics",
|
|
"Container management",
|
|
"DNS management",
|
|
"Deployment tracking",
|
|
"Resource monitoring",
|
|
},
|
|
})
|
|
})
|
|
|
|
r.Run(":" + port)
|
|
}
|