hway/handlers/index.go

15 lines
249 B
Go
Raw Normal View History

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