2024-10-10 13:44:17 -04:00
|
|
|
package home
|
|
|
|
|
|
|
|
|
|
import (
|
2024-10-11 16:47:52 -04:00
|
|
|
"log"
|
|
|
|
|
|
2024-10-10 13:44:17 -04:00
|
|
|
"github.com/labstack/echo/v4"
|
2024-10-11 16:47:52 -04:00
|
|
|
|
2024-10-10 13:44:17 -04:00
|
|
|
"github.com/onsonr/sonr/internal/ctx"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func Route(c echo.Context) error {
|
2024-10-11 16:47:52 -04:00
|
|
|
s := ctx.GetSession(c)
|
2024-10-12 12:52:20 -04:00
|
|
|
log.Printf("Session ID: %s", s.ID)
|
|
|
|
|
log.Printf("Session Origin: %s", s.Origin)
|
|
|
|
|
log.Printf("Session Address: %s", s.Address)
|
|
|
|
|
log.Printf("Session ChainID: %s", s.ChainID)
|
2024-10-10 13:44:17 -04:00
|
|
|
return ctx.RenderTempl(c, View())
|
|
|
|
|
}
|