mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-11 13:29:12 +00:00
17 lines
337 B
Go
17 lines
337 B
Go
|
package handlers
|
||
|
|
||
|
import (
|
||
|
"github.com/labstack/echo/v4"
|
||
|
"github.com/onsonr/sonr/pkg/gateway/middleware"
|
||
|
)
|
||
|
|
||
|
func RenderIndex(c echo.Context) error {
|
||
|
// Initialize the session
|
||
|
err := middleware.NewSession(c)
|
||
|
if err != nil {
|
||
|
return middleware.RenderError(c, err)
|
||
|
}
|
||
|
// Render the initial view
|
||
|
return middleware.RenderInitial(c)
|
||
|
}
|