Files
sonr/pkg/common/response/redirect.go
T

20 lines
394 B
Go
Raw Normal View History

package response
import (
"net/http"
"github.com/labstack/echo/v4"
)
func RedirectLanding(c echo.Context) error {
return c.Redirect(http.StatusFound, "http://localhost:3000")
}
2024-12-05 20:36:58 -05:00
func RedirectIPFS(c echo.Context, cid string) error {
return c.Redirect(http.StatusFound, cid)
}
2024-12-05 20:36:58 -05:00
func RedirectAuth(c echo.Context) error {
return c.Redirect(http.StatusFound, "http://auth.localhost:3000")
}