obs-replay-server/handlers/handlers.go
2023-06-01 18:20:03 +02:00

19 lines
350 B
Go

package handlers
import (
"html/template"
"github.com/charmbracelet/log"
"github.com/labstack/echo/v4"
)
func IndexHandler(c echo.Context) error {
t, err := template.ParseFiles("views/base.html", "views/public/index.html")
if err != nil {
log.Error("failed to parse template", "err", err)
}
return t.Execute(c.Response().Writer, nil)
}