feature/1126 implement pkl config (#1161)

- **refactor: move marketing pages to**
- **feat: add role select input**
This commit is contained in:
Prad Nukala
2024-11-06 13:32:51 -05:00
committed by GitHub
parent 82ec2664f3
commit d8cb2cbbf6
54 changed files with 854 additions and 431 deletions
+4 -5
View File
@@ -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)
}
+4 -4
View File
@@ -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)
}