2023-09-10 17:39:34 +02:00
|
|
|
package handler
|
|
|
|
|
|
|
|
import (
|
2023-10-04 13:36:54 +02:00
|
|
|
"git.ekzyis.com/ekzyis/delphi.market/server/router/context"
|
2024-07-09 22:41:29 +02:00
|
|
|
"git.ekzyis.com/ekzyis/delphi.market/server/router/pages"
|
2023-09-10 17:39:34 +02:00
|
|
|
"github.com/labstack/echo/v4"
|
|
|
|
)
|
|
|
|
|
2024-07-09 22:41:29 +02:00
|
|
|
func HandleIndex(sc context.Context) echo.HandlerFunc {
|
2023-09-10 17:39:34 +02:00
|
|
|
return func(c echo.Context) error {
|
2024-07-09 22:41:29 +02:00
|
|
|
return pages.Index().Render(context.RenderContext(sc, c), c.Response().Writer)
|
2023-09-10 17:39:34 +02:00
|
|
|
}
|
|
|
|
}
|