Rename module to new repository root
This commit is contained in:
+3
-3
@@ -2,7 +2,7 @@ package htmx
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"ersteller-lib"
|
||||
"git.gorlug.de/code/ersteller"
|
||||
"github.com/labstack/echo/v4"
|
||||
)
|
||||
|
||||
@@ -15,10 +15,10 @@ type LocationRedirectParams struct {
|
||||
func LocationRedirect(c echo.Context, params LocationRedirectParams) error {
|
||||
jsonData, err := json.Marshal(params)
|
||||
if err != nil {
|
||||
ersteller_lib.Error("Failed to marshal LocationRedirectParams ", params, err)
|
||||
ersteller.Error("Failed to marshal LocationRedirectParams ", params, err)
|
||||
return err
|
||||
}
|
||||
ersteller_lib.Debug("LocationRedirectParams", params, "jsonData", string(jsonData))
|
||||
ersteller.Debug("LocationRedirectParams", params, "jsonData", string(jsonData))
|
||||
c.Response().Header().Set("HX-Location", string(jsonData))
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user