rename endpoint to avoid collision

This commit is contained in:
callebtc 2021-11-27 12:42:19 +01:00
parent 0331861cc6
commit 3fd66f38da

View File

@ -23,7 +23,7 @@ from .crud import (
)
from .models import CreateUserData, CreateUserWallet
### Users
# Users
@usermanager_ext.get("/api/v1/users", status_code=HTTPStatus.OK)
@ -72,7 +72,7 @@ async def api_usermanager_users_delete(
raise HTTPException(status_code=HTTPStatus.NO_CONTENT)
###Activate Extension
# Activate Extension
@usermanager_ext.post("/api/v1/extensions")
@ -88,7 +88,7 @@ async def api_usermanager_activate_extension(
return {"extension": "updated"}
###Wallets
# Wallets
@usermanager_ext.post("/api/v1/wallets")
@ -107,7 +107,7 @@ async def api_usermanager_wallets(wallet: WalletTypeInfo = Depends(get_key_type)
return [wallet.dict() for wallet in await get_usermanager_wallets(admin_id)]
@usermanager_ext.get("/api/v1/wallets/{wallet_id}")
@usermanager_ext.get("/api/v1/transactions/{wallet_id}")
async def api_usermanager_wallet_transactions(
wallet_id, wallet: WalletTypeInfo = Depends(get_key_type)
):