This commit is contained in:
benarc 2024-02-01 17:25:38 +00:00
parent 2cac36be17
commit 37d2082082
10 changed files with 2 additions and 2 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -256,7 +256,7 @@
},
createMyExtension(wallet, data) {
LNbits.api
.request('POST', '/myextension/api/v1/temps', wallet.inkey, data)
.request('POST', '/myextension/api/v1/temps', wallet.adminkey, data)
.then(response => {
this.temps.push(mapMyExtension(response.data))
this.closeFormDialog()

View file

@ -101,7 +101,7 @@ async def api_myextension_update(
async def api_myextension_create(
req: Request,
data: CreateMyExtensionData,
wallet: WalletTypeInfo = Depends(get_key_type),
wallet: WalletTypeInfo = Depends(require_admin_key),
):
myextension = await create_myextension(
wallet_id=wallet.wallet.id, data=data, req=req