Archived
Template
1
0
This repository has been archived on 2023-12-20. You can view files and clone it, but cannot push or open issues or pull requests.
Files
golang-base-project/routes/admin.go
2022-01-09 14:22:43 +01:00

17 lines
341 B
Go

package routes
import (
"github.com/gin-gonic/gin"
"net/http"
)
// Admin renders the admin dashboard
func (controller Controller) Admin(c *gin.Context) {
pd := PageData{
Title: "Admin",
IsAuthenticated: isAuthenticated(c),
CacheParameter: controller.config.CacheParameter,
}
c.HTML(http.StatusOK, "admin.html", pd)
}