mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 21:09:11 +00:00
15 lines
253 B
Go
15 lines
253 B
Go
package handlers
|
|
|
|
import (
|
|
"github.com/labstack/echo/v4"
|
|
"github.com/onsonr/sonr/gateway/context"
|
|
)
|
|
|
|
func IndexHandler(c echo.Context) error {
|
|
id := context.GetSessionID(c)
|
|
if id == "" {
|
|
context.NewSession(c)
|
|
}
|
|
return context.RenderInitial(c)
|
|
}
|