mozhi/pages/index.go
Arya Kiran a4eb13cdac
init
2023-06-25 00:10:57 +05:30

20 lines
434 B
Go

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"),
})
}