22 lines
571 B
Go

package router
import (
"github.com/labstack/echo/v4"
"git.ekzyis.com/ekzyis/delphi.market/server/router/context"
"git.ekzyis.com/ekzyis/delphi.market/server/router/handler"
)
type Context = context.Context
func Init(e *echo.Echo, sc Context) {
// e.Use(middleware.Session(sc))
e.GET("/", handler.HandleIndex(sc))
e.GET("/about", handler.HandleAbout(sc))
e.GET("/login", handler.HandleLogin(sc))
e.GET("/signup", handler.HandleSignup(sc))
e.GET("/signup/:method", handler.HandleSignup(sc))
e.GET("/api/lnauth/callback", handler.HandleLnAuthCallback(sc))
}