diff --git a/__pycache__/__init__.cpython-39.pyc b/__pycache__/__init__.cpython-39.pyc index b19632c..68e4005 100644 Binary files a/__pycache__/__init__.cpython-39.pyc and b/__pycache__/__init__.cpython-39.pyc differ diff --git a/__pycache__/crud.cpython-39.pyc b/__pycache__/crud.cpython-39.pyc index 462953b..fef9c1a 100644 Binary files a/__pycache__/crud.cpython-39.pyc and b/__pycache__/crud.cpython-39.pyc differ diff --git a/__pycache__/lnurl.cpython-39.pyc b/__pycache__/lnurl.cpython-39.pyc index bc0c96b..1db46e1 100644 Binary files a/__pycache__/lnurl.cpython-39.pyc and b/__pycache__/lnurl.cpython-39.pyc differ diff --git a/__pycache__/migrations.cpython-39.pyc b/__pycache__/migrations.cpython-39.pyc index c97d109..d58ffbc 100644 Binary files a/__pycache__/migrations.cpython-39.pyc and b/__pycache__/migrations.cpython-39.pyc differ diff --git a/__pycache__/models.cpython-39.pyc b/__pycache__/models.cpython-39.pyc index e21338f..b534e8c 100644 Binary files a/__pycache__/models.cpython-39.pyc and b/__pycache__/models.cpython-39.pyc differ diff --git a/__pycache__/tasks.cpython-39.pyc b/__pycache__/tasks.cpython-39.pyc index 8210659..1332c6d 100644 Binary files a/__pycache__/tasks.cpython-39.pyc and b/__pycache__/tasks.cpython-39.pyc differ diff --git a/__pycache__/views.cpython-39.pyc b/__pycache__/views.cpython-39.pyc index 4af6fe0..4ad2aa5 100644 Binary files a/__pycache__/views.cpython-39.pyc and b/__pycache__/views.cpython-39.pyc differ diff --git a/__pycache__/views_api.cpython-39.pyc b/__pycache__/views_api.cpython-39.pyc index dcb8161..23a3239 100644 Binary files a/__pycache__/views_api.cpython-39.pyc and b/__pycache__/views_api.cpython-39.pyc differ diff --git a/templates/myextension/index.html b/templates/myextension/index.html index 278e40c..f4612de 100644 --- a/templates/myextension/index.html +++ b/templates/myextension/index.html @@ -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() diff --git a/views_api.py b/views_api.py index 8a920f4..28f2523 100644 --- a/views_api.py +++ b/views_api.py @@ -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