You've already forked golang-base-project
14 lines
268 B
Go
14 lines
268 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 := controller.DefaultPageData(c)
|
|
pd.Title = pd.Trans("Admin")
|
|
c.HTML(http.StatusOK, "admin.html", pd)
|
|
}
|