config integration
begin cognito config integration
This commit is contained in:
@@ -11,7 +11,7 @@ import (
|
||||
)
|
||||
|
||||
// RegisterRoutes registers all authentication-related routes to the Echo engine
|
||||
func RegisterRoutes(e *echo.Echo, config *Config) {
|
||||
func RegisterRoutes(e *echo.Echo, config *CognitoConfig) {
|
||||
// Register the login route - the middleware will handle this
|
||||
e.GET(config.LoginPath, func(c echo.Context) error {
|
||||
// This is handled by the middleware
|
||||
@@ -53,7 +53,7 @@ func RegisterRoutes(e *echo.Echo, config *Config) {
|
||||
}
|
||||
|
||||
// HomeHandler implements a simple home page that shows auth status and available endpoints
|
||||
func HomeHandler(c echo.Context, config *Config) error {
|
||||
func HomeHandler(c echo.Context, config *CognitoConfig) error {
|
||||
// Create a list of all registered routes
|
||||
var endpoints []string
|
||||
|
||||
|
||||
Reference in New Issue
Block a user