mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-03 01:41:44 +00:00
feature/1126 implement pkl config (#1161)
- **refactor: move marketing pages to** - **feat: add role select input**
This commit is contained in:
@@ -3,15 +3,14 @@ package routes
|
||||
import (
|
||||
"github.com/labstack/echo/v4"
|
||||
|
||||
"github.com/onsonr/sonr/pkg/nebula/components/authentication"
|
||||
"github.com/onsonr/sonr/pkg/nebula/components/marketing"
|
||||
"github.com/onsonr/sonr/pkg/nebula/routes"
|
||||
)
|
||||
|
||||
func RegisterGatewayAPI(e *echo.Echo) {
|
||||
}
|
||||
|
||||
func RegisterGatewayViews(e *echo.Echo) {
|
||||
e.GET("/", marketing.HomeRoute)
|
||||
e.GET("/login", authentication.LoginModalRoute)
|
||||
e.GET("/register", authentication.RegisterModalRoute)
|
||||
e.GET("/", routes.HomeRoute)
|
||||
e.GET("/login", routes.LoginModalRoute)
|
||||
e.GET("/register", routes.RegisterModalRoute)
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ package routes
|
||||
import (
|
||||
"github.com/labstack/echo/v4"
|
||||
|
||||
"github.com/onsonr/sonr/pkg/nebula/components/authentication"
|
||||
"github.com/onsonr/sonr/pkg/nebula/routes"
|
||||
"github.com/onsonr/sonr/pkg/workers/handlers"
|
||||
)
|
||||
|
||||
@@ -26,8 +26,8 @@ func RegisterWebNodeAPI(e *echo.Echo) {
|
||||
// RegisterWebNodeViews registers the Decentralized Web Node HTMX views.
|
||||
func RegisterWebNodeViews(e *echo.Echo) {
|
||||
e.File("/", "index.html")
|
||||
e.GET("/#", authentication.CurrentViewRoute)
|
||||
e.GET("/login", authentication.LoginModalRoute)
|
||||
e.GET("/#", routes.CurrentViewRoute)
|
||||
e.GET("/login", routes.LoginModalRoute)
|
||||
e.File("/config", "config.json")
|
||||
e.GET("/register", authentication.RegisterModalRoute)
|
||||
e.GET("/register", routes.RegisterModalRoute)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user