20 lines
269 B
Go
20 lines
269 B
Go
package http
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
type AccountsData struct {
|
|
AlwaysNeededData
|
|
}
|
|
|
|
func (h *Handler) accounts(c *gin.Context) {
|
|
d := AccountsData{
|
|
c.MustGet("data").(AlwaysNeededData),
|
|
}
|
|
|
|
c.HTML(http.StatusOK, "accounts.html", d)
|
|
}
|