2024-11-06 13:32:51 -05:00
|
|
|
package routes
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"log"
|
|
|
|
|
|
|
|
|
|
"github.com/labstack/echo/v4"
|
2024-11-18 19:04:10 -05:00
|
|
|
|
|
|
|
|
"github.com/onsonr/sonr/pkg/common/ctx"
|
2024-11-06 13:32:51 -05:00
|
|
|
"github.com/onsonr/sonr/pkg/nebula/marketing"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// ╭───────────────────────────────────────────────────────────╮
|
|
|
|
|
// │ Home Routes - Marketing │
|
|
|
|
|
// ╰───────────────────────────────────────────────────────────╯
|
|
|
|
|
|
|
|
|
|
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, marketing.View())
|
|
|
|
|
}
|