mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 21:09:11 +00:00
22 lines
682 B
Go
22 lines
682 B
Go
|
package routes
|
||
|
|
||
|
import (
|
||
|
"github.com/labstack/echo/v4"
|
||
|
"github.com/onsonr/sonr/pkg/gateway/handlers"
|
||
|
)
|
||
|
|
||
|
func Register(e *echo.Echo) error {
|
||
|
// Register View Handlers
|
||
|
e.GET("/", handlers.RenderIndex)
|
||
|
e.GET("/register", handlers.RenderProfileCreate)
|
||
|
e.POST("/register/passkey", handlers.RenderPasskeyCreate)
|
||
|
e.POST("/register/finish", handlers.RenderVaultLoading)
|
||
|
|
||
|
// Register Validation Handlers
|
||
|
e.POST("/register/profile/handle", handlers.ValidateProfileHandle)
|
||
|
e.POST("/register/profile/is_human", handlers.ValidateIsHumanSum)
|
||
|
e.POST("/submit/profile/handle", handlers.SubmitProfileHandle)
|
||
|
e.POST("/submit/credential", handlers.SubmitPublicKeyCredential)
|
||
|
return nil
|
||
|
}
|