2024-12-22 17:01:11 -05:00
|
|
|
package handlers
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"github.com/labstack/echo/v4"
|
2024-12-28 23:53:54 -05:00
|
|
|
"github.com/onsonr/sonr/gateway/context"
|
2024-12-22 17:01:11 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func IndexHandler(c echo.Context) error {
|
|
|
|
|
id := context.GetSessionID(c)
|
|
|
|
|
if id == "" {
|
|
|
|
|
context.NewSession(c)
|
|
|
|
|
}
|
|
|
|
|
return context.RenderInitial(c)
|
|
|
|
|
}
|