mozhi/pages/index.go

21 lines
434 B
Go
Raw Normal View History

2023-06-24 18:40:57 +00:00
package pages
import (
"os"
"runtime"
"codeberg.org/aryak/simplytranslate/utils"
"github.com/gofiber/fiber/v2"
)
func HandleIndex(c *fiber.Ctx) error {
return c.Render("index", fiber.Map{
"host": c.Hostname(),
"branch": utils.Branch,
"version": utils.Version(),
"fiberversion": fiber.Version,
"goversion": runtime.Version(),
"setupstatus": os.Getenv("SIMPLYTRANSLATE_SETUP_COMPLETE"),
})
}