remote-i3wm-go/home_controller.go
Simon Vieille a3ee86f81b
add config
2023-08-25 11:19:54 +02:00

17 lines
260 B
Go

package main
import (
"github.com/labstack/echo/v4"
"net/http"
)
type HomeViewParams struct {
Config Config
}
func homeController(c echo.Context) error {
return c.HTML(http.StatusOK, view("views/page/home.html", HomeViewParams{
Config: config,
}))
}