aboutsummaryrefslogtreecommitdiff
path: root/utils/render.go
diff options
context:
space:
mode:
authorAlexander NeonXP Kiryukhin <i@neonxp.ru>2024-07-30 00:46:05 +0300
committerAlexander NeonXP Kiryukhin <i@neonxp.ru>2024-07-30 00:46:05 +0300
commit48a84eb03f6b17ee41d6f097c78d89488ba14e8c (patch)
tree5cef9486cf2bb07d828bfebe12e835e40f7f16f0 /utils/render.go
parent96e2ce2e9d363a6296f9411ecb00168520258874 (diff)
Обновил сессии
Diffstat (limited to 'utils/render.go')
-rw-r--r--utils/render.go15
1 files changed, 0 insertions, 15 deletions
diff --git a/utils/render.go b/utils/render.go
deleted file mode 100644
index 787c453..0000000
--- a/utils/render.go
+++ /dev/null
@@ -1,15 +0,0 @@
-package utils
-
-import (
- "net/http"
-
- "github.com/a-h/templ"
- "github.com/labstack/echo/v4"
-)
-
-func Render(c echo.Context, cmp templ.Component) error {
- c.Response().WriteHeader(http.StatusOK)
- c.Response().Header().Set(echo.HeaderContentType, echo.MIMETextHTMLCharsetUTF8)
-
- return cmp.Render(c.Request().Context(), c.Response())
-}