add constructor funcs for controllers

This commit is contained in:
kiwiidb
2022-01-19 14:35:46 +01:00
parent 0c80998b49
commit a83fbc6067
8 changed files with 46 additions and 7 deletions

View File

@@ -21,6 +21,10 @@ type CreateUserController struct {
svc *lib.LndhubService
}
func NewCreateUserController(svc *lib.LndhubService) *CreateUserController {
return &CreateUserController{svc: svc}
}
// CreateUser : Create user Controller
func (controller *CreateUserController) CreateUser(c echo.Context) error {
// optional parameters that we currently do not use