From b633d21ea8dfe5d59a94a35a5407bba3416c76ae Mon Sep 17 00:00:00 2001 From: Prad Nukala Date: Mon, 7 Oct 2024 13:48:28 -0400 Subject: [PATCH] feat: add LoginStart and RegisterStart routes --- cmd/hway/server/server.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/hway/server/server.go b/cmd/hway/server/server.go index bb8dc3bdb..4e4cabc52 100644 --- a/cmd/hway/server/server.go +++ b/cmd/hway/server/server.go @@ -8,7 +8,7 @@ import ( "github.com/onsonr/sonr/internal/session" "github.com/onsonr/sonr/pkg/nebula" - "github.com/onsonr/sonr/pkg/nebula/router" + "github.com/onsonr/sonr/pkg/nebula/routes" ) type Server struct { @@ -25,9 +25,9 @@ func New() *Server { s.Logger.Fatal(err) } - s.GET("/", router.Home) - s.GET("/login", router.Login) - s.GET("/register", router.Register) + s.GET("/", routes.Home) + s.GET("/login", routes.LoginStart) + s.GET("/register", routes.RegisterStart) // s.GET("/profile", router.Profile) // s.GET("/authorize", router.Authorize) return s