mirror of
https://codeberg.org/aryak/mozhi
synced 2024-11-18 13:42:57 +05:30
21 lines
434 B
Go
21 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"),
|
||
|
})
|
||
|
}
|