mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-11 13:29:12 +00:00
14 lines
258 B
Go
14 lines
258 B
Go
|
package index
|
||
|
|
||
|
import (
|
||
|
"github.com/labstack/echo/v4"
|
||
|
"github.com/onsonr/sonr/pkg/common/response"
|
||
|
)
|
||
|
|
||
|
func Handler(c echo.Context) error {
|
||
|
if isExpired(c) {
|
||
|
return response.TemplEcho(c, ReturningView())
|
||
|
}
|
||
|
return response.TemplEcho(c, InitialView())
|
||
|
}
|