obs-replay-server/handlers/handlers.go

19 lines
350 B
Go
Raw Normal View History

2023-06-01 13:20:03 -03:00
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)
}