mirror of
https://github.com/jsiebens/ionscale.git
synced 2026-03-31 15:07:49 +01:00
14 lines
319 B
Go
14 lines
319 B
Go
package handlers
|
|
|
|
import (
|
|
tpl "github.com/jsiebens/ionscale/internal/templates"
|
|
"github.com/jsiebens/ionscale/internal/version"
|
|
"github.com/labstack/echo/v4"
|
|
)
|
|
|
|
func IndexHandler(code int) echo.HandlerFunc {
|
|
return func(c echo.Context) error {
|
|
return c.Render(code, "", tpl.Index(version.GetReleaseInfo()))
|
|
}
|
|
}
|