- Implemented Settings page for changing user passwords with validation and feedback. - Created Setup page for initial admin account setup with form handling and navigation. - Added API service layer for handling requests related to proxy hosts, remote servers, and import functionality. - Introduced mock data for testing purposes and set up testing framework with vitest. - Configured Tailwind CSS for styling and Vite for development and build processes. - Added scripts for Dockerfile validation, Python syntax checking, and Sourcery integration. - Implemented release and coverage scripts for better CI/CD practices.
20 lines
441 B
Go
20 lines
441 B
Go
package handlers
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/Wikid82/CaddyProxyManagerPlus/backend/internal/version"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
// HealthHandler responds with basic service metadata for uptime checks.
|
|
func HealthHandler(c *gin.Context) {
|
|
c.JSON(http.StatusOK, gin.H{
|
|
"status": "ok",
|
|
"service": version.Name,
|
|
"version": version.Version,
|
|
"git_commit": version.GitCommit,
|
|
"build_time": version.BuildTime,
|
|
})
|
|
}
|