diff --git a/echo_handlers.go b/echo_handlers.go index ab599bac..30e5eb66 100644 --- a/echo_handlers.go +++ b/echo_handlers.go @@ -249,8 +249,13 @@ func (svc *Service) AppsNewHandler(c echo.Context) error { disabled := c.QueryParam("editable") == "false" requestMethods := c.QueryParam("request_methods") if requestMethods == "" { - //pay_invoice checkbox is default checked but can be disabled - requestMethods = NIP_47_PAY_INVOICE_METHOD + // if no request methods are given, enable them all by default + keys := []string{} + for key := range nip47MethodDescriptions { + keys = append(keys, key) + } + + requestMethods = strings.Join(keys, " ") } budgetEnabled := maxAmount != "" || budgetRenewal != "" csrf, _ := c.Get(middleware.DefaultCSRFConfig.ContextKey).(string)