vspd/internal/webapi/homepage.go
2023-09-13 09:03:05 +01:00

19 lines
375 B
Go

// Copyright (c) 2020-2022 The Decred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
package webapi
import (
"net/http"
"github.com/gin-gonic/gin"
)
func (s *server) homepage(c *gin.Context) {
c.HTML(http.StatusOK, "homepage.html", gin.H{
"WebApiCache": s.cache.getData(),
"WebApiCfg": s.cfg,
})
}