remote-i3wm-go/home_controller.go

17 lines
260 B
Go
Raw Normal View History

2023-08-25 09:03:49 +02:00
package main
import (
"github.com/labstack/echo/v4"
"net/http"
)
2023-08-25 11:19:54 +02:00
type HomeViewParams struct {
Config Config
}
2023-08-25 09:03:49 +02:00
func homeController(c echo.Context) error {
2023-08-25 11:19:54 +02:00
return c.HTML(http.StatusOK, view("views/page/home.html", HomeViewParams{
Config: config,
}))
2023-08-25 09:03:49 +02:00
}