mirror of
https://github.com/getAlby/lndhub.go.git
synced 2025-12-23 23:55:02 +01:00
add constructor funcs for controllers
This commit is contained in:
@@ -18,6 +18,14 @@ type AuthController struct {
|
||||
svc *lib.LndhubService
|
||||
}
|
||||
|
||||
func NewAuthController(svc *lib.LndhubService, secret []byte, expiry int) *AuthController {
|
||||
return &AuthController{
|
||||
svc: svc,
|
||||
JWTSecret: secret,
|
||||
JWTExpiry: expiry,
|
||||
}
|
||||
}
|
||||
|
||||
// Auth : Auth Controller
|
||||
func (controller *AuthController) Auth(c echo.Context) error {
|
||||
type RequestBody struct {
|
||||
|
||||
Reference in New Issue
Block a user