package main import ( "net/http" "github.com/labstack/echo/v4" ) func getPartialUploadHandler(c echo.Context) error { c.Response().Header().Add("HX-Push", "/new") return RenderComponent(c, http.StatusOK, newFileUpload()) } func getPartialTextHandler(c echo.Context) error { c.Response().Header().Add("HX-Push", "/new?text") return RenderComponent(c, http.StatusOK, newTextSubmit()) }