mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-04 02:11:40 +00:00
19 lines
290 B
Go
19 lines
290 B
Go
package marketing
|
|||
|
|
|
||
|
|
import (
|
||
|
|
"log"
|
||
|
|
|
||
|
|
"github.com/labstack/echo/v4"
|
||
|
|
|
||
|
|
"github.com/onsonr/sonr/internal/ctx"
|
||
|
|
)
|
||
|
|
|
||
|
|
func HomeRoute(c echo.Context) error {
|
||
|
|
s, err := ctx.GetHWAYContext(c)
|
||
|
|
if err != nil {
|
||
|
|
return err
|
||
|
|
}
|
||
|
|
log.Printf("Session ID: %s", s.ID())
|
||
|
|
return ctx.RenderTempl(c, View())
|
||
|
|
}
|