15 lines
270 B
Go
15 lines
270 B
Go
|
|
package server
|
||
|
|
|
||
|
|
import (
|
||
|
|
"net/http"
|
||
|
|
|
||
|
|
"github.com/gin-gonic/gin"
|
||
|
|
)
|
||
|
|
|
||
|
|
func (app *App) handleAdminDashboard(ctx *gin.Context) {
|
||
|
|
ctx.HTML(http.StatusOK, "admin.html", gin.H{
|
||
|
|
"CurrentUser": app.currentAdminUsername(ctx),
|
||
|
|
"CSRFToken": app.currentCSRFToken(ctx),
|
||
|
|
})
|
||
|
|
}
|