mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 21:09:11 +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())
|
|
}
|