mirror of
https://github.com/cf-sonr/hway.git
synced 2026-01-12 03:09:14 +00:00
15 lines
249 B
Go
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)
|
|
}
|