mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-03 01:41:44 +00:00
20 lines
392 B
Go
20 lines
392 B
Go
package response
|
|||
|
|
|
||
|
|
import (
|
||
|
|
"net/http"
|
||
|
|
|
||
|
|
"github.com/labstack/echo/v4"
|
||
|
|
)
|
||
|
|
|
||
|
|
func RedirectLanding(c echo.Context) error {
|
||
|
|
return c.Redirect(http.StatusFound, "http://localhost:3000")
|
||
|
|
}
|
||
|
|
|
||
|
|
func RedirectVaultCID(c echo.Context, cid string) error {
|
||
|
|
return c.Redirect(http.StatusFound, cid)
|
||
|
|
}
|
||
|
|
|
||
|
|
func RedirectVaultIPNS(c echo.Context, ipns string) error {
|
||
|
|
return c.Redirect(http.StatusFound, ipns)
|
||
|
|
}
|