changed icon
This commit is contained in:
parent
8b2b36a4f9
commit
5549ef91f4
2 changed files with 3 additions and 7 deletions
Binary file not shown.
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 47 KiB |
10
views_api.py
10
views_api.py
|
|
@ -4,11 +4,7 @@ from fastapi import APIRouter, Depends, Query, Request
|
||||||
from lnbits.core.crud import get_user
|
from lnbits.core.crud import get_user
|
||||||
from lnbits.core.models import WalletTypeInfo
|
from lnbits.core.models import WalletTypeInfo
|
||||||
from lnbits.core.services import create_invoice
|
from lnbits.core.services import create_invoice
|
||||||
from lnbits.decorators import (
|
from lnbits.decorators import require_admin_key, require_invoice_key
|
||||||
get_key_type,
|
|
||||||
require_admin_key,
|
|
||||||
require_invoice_key,
|
|
||||||
)
|
|
||||||
from starlette.exceptions import HTTPException
|
from starlette.exceptions import HTTPException
|
||||||
|
|
||||||
from .crud import (
|
from .crud import (
|
||||||
|
|
@ -37,7 +33,7 @@ myextension_api_router = APIRouter()
|
||||||
async def api_myextensions(
|
async def api_myextensions(
|
||||||
req: Request,
|
req: Request,
|
||||||
all_wallets: bool = Query(False),
|
all_wallets: bool = Query(False),
|
||||||
wallet: WalletTypeInfo = Depends(get_key_type),
|
wallet: WalletTypeInfo = Depends(require_invoice_key),
|
||||||
):
|
):
|
||||||
wallet_ids = [wallet.wallet.id]
|
wallet_ids = [wallet.wallet.id]
|
||||||
if all_wallets:
|
if all_wallets:
|
||||||
|
|
@ -82,7 +78,7 @@ async def api_myextension_update(
|
||||||
data: CreateMyExtensionData,
|
data: CreateMyExtensionData,
|
||||||
req: Request,
|
req: Request,
|
||||||
myextension_id: str,
|
myextension_id: str,
|
||||||
wallet: WalletTypeInfo = Depends(get_key_type),
|
wallet: WalletTypeInfo = Depends(require_admin_key),
|
||||||
) -> MyExtension:
|
) -> MyExtension:
|
||||||
|
|
||||||
myextension = await get_myextension(myextension_id)
|
myextension = await get_myextension(myextension_id)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue