Files
ProxmoxAAS-Dashboard/app/routes/settings.go
2025-03-27 22:46:54 +00:00

21 lines
369 B
Go

package routes
import (
"net/http"
"proxmoxaas-dashboard/app/common"
"github.com/gin-gonic/gin"
)
func HandleGETSettings(c *gin.Context) {
_, _, _, err := common.GetAuth(c)
if err == nil {
c.HTML(http.StatusOK, "html/settings.html", gin.H{
"global": common.Global,
"page": "settings",
})
} else {
c.Redirect(http.StatusFound, "/login.html")
}
}