2021-12-08 15:31:52 +00:00
|
|
|
package routes
|
|
|
|
|
|
|
|
import (
|
2022-01-08 16:21:53 +00:00
|
|
|
"git.ucode.space/Phil/goshorly/db"
|
2021-12-08 15:31:52 +00:00
|
|
|
"git.ucode.space/Phil/goshorly/utils"
|
|
|
|
"github.com/gofiber/fiber/v2"
|
|
|
|
)
|
|
|
|
|
|
|
|
func Gethome(c *fiber.Ctx) error {
|
|
|
|
return c.Render("views/home", fiber.Map{
|
|
|
|
"GitCommitShort": utils.GitCommitShort,
|
|
|
|
"GitBranch": utils.GitBranch,
|
|
|
|
"GitBuild": utils.GitBuild,
|
2022-01-08 16:21:53 +00:00
|
|
|
"TotalLinks": db.GetTotalLinks(),
|
|
|
|
"TotalViews": db.GetTotalViews(),
|
2021-12-08 15:31:52 +00:00
|
|
|
})
|
|
|
|
}
|