mirror of
https://github.com/cf-sonr/radar.git
synced 2026-01-12 02:59:13 +00:00
25 lines
540 B
Go
25 lines
540 B
Go
|
|
//go:build js && wasm
|
||
|
|
// +build js,wasm
|
||
|
|
|
||
|
|
package handlers
|
||
|
|
|
||
|
|
import (
|
||
|
|
"github.com/labstack/echo/v4"
|
||
|
|
"github.com/sonr-io/motr/ui/register"
|
||
|
|
"github.com/sonr-io/motr/pkg/render"
|
||
|
|
"github.com/sonr-io/motr/ui/home"
|
||
|
|
"github.com/sonr-io/motr/ui/login"
|
||
|
|
)
|
||
|
|
|
||
|
|
func RenderHomePage(c echo.Context) error {
|
||
|
|
return render.Component(c, home.HomeView())
|
||
|
|
}
|
||
|
|
|
||
|
|
func RenderLoginPage(c echo.Context) error {
|
||
|
|
return render.Component(c, login.LoginView())
|
||
|
|
}
|
||
|
|
|
||
|
|
func RenderRegisterPage(c echo.Context) error {
|
||
|
|
return render.Component(c, register.RegisterView())
|
||
|
|
}
|