package pages

import (
  "os"
  "runtime"

  "gitler.moe/suwako/gitlin/utils"
  "github.com/gofiber/fiber/v2"
)

func HandleIndex(c *fiber.Ctx) error {
  return c.Render("index", fiber.Map{
    "host":         c.Hostname(),
    "ver":          utils.Ver,
    "ves":          utils.Ves,
    "fiberversion": fiber.Version,
    "goversion":    runtime.Version(),
    "setupstatus":  os.Getenv("GITLIN_SETUP_COMPLETE"),
  })
}
