mirror of
https://github.com/jsiebens/ionscale.git
synced 2026-03-31 15:07:49 +01:00
5ad89ff02f
Signed-off-by: Johan Siebens <johan.siebens@gmail.com>
18 lines
373 B
Go
18 lines
373 B
Go
package handlers
|
|
|
|
import (
|
|
"fmt"
|
|
"github.com/jsiebens/ionscale/internal/version"
|
|
"github.com/labstack/echo/v4"
|
|
)
|
|
|
|
func IndexHandler(code int) echo.HandlerFunc {
|
|
return func(c echo.Context) error {
|
|
info, s := version.GetReleaseInfo()
|
|
data := map[string]interface{}{
|
|
"Version": fmt.Sprintf("%s - %s", info, s),
|
|
}
|
|
return c.Render(code, "index.html", data)
|
|
}
|
|
}
|