mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-23 14:40:47 +01:00
* feat: explicitly export for extensions from `__init__.py` makes it clear what extensions are expected to use and also makes future changes to the structure of core safer because extension can just depend on ```from lnbits import require_admin_key``` for example
24 lines
509 B
Python
24 lines
509 B
Python
from .core.services import create_invoice, pay_invoice
|
|
from .decorators import (
|
|
check_admin,
|
|
check_super_user,
|
|
check_user_exists,
|
|
require_admin_key,
|
|
require_invoice_key,
|
|
)
|
|
from .exceptions import InvoiceError, PaymentError
|
|
|
|
__all__ = [
|
|
# decorators
|
|
"require_admin_key",
|
|
"require_invoice_key",
|
|
"check_admin",
|
|
"check_super_user",
|
|
"check_user_exists",
|
|
# services
|
|
"pay_invoice",
|
|
"create_invoice",
|
|
# exceptions
|
|
"PaymentError",
|
|
"InvoiceError",
|
|
]
|