Files
hway/handlers/index.go
2025-01-06 15:09:44 -05:00

15 lines
249 B
Go

package handlers
import (
"github.com/labstack/echo/v4"
"github.com/onsonr/hway/pkg/context"
)
func IndexHandler(c echo.Context) error {
id := context.GetSessionID(c)
if id == "" {
context.NewSession(c)
}
return context.RenderInitial(c)
}