Files
ProxmoxAAS-Dashboard/app/routes/settings.go
Arthur Lu 099f9c4e42 simplify front end routes,
simplify ssr fragment fetch methods
2025-04-15 17:13:22 +00:00

21 lines
358 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")
}
}