Remove test client creation functionality from admin extension
Client registration will now be handled by the DCA client extension.
The admin extension focuses solely on:
- Reading existing clients
- Managing deposits (pending → confirmed workflow)
- Monitoring DCA activity
Test client creation code preserved in 'feature/test-client-creation' branch.
🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
76807663db
commit
dfc2dd695c
3 changed files with 0 additions and 47 deletions
10
views_api.py
10
views_api.py
|
|
@ -12,7 +12,6 @@ from starlette.exceptions import HTTPException
|
|||
|
||||
from .crud import (
|
||||
# DCA CRUD operations
|
||||
create_dca_client,
|
||||
get_dca_clients,
|
||||
get_dca_client,
|
||||
update_dca_client,
|
||||
|
|
@ -36,7 +35,6 @@ from .crud import (
|
|||
)
|
||||
from .models import (
|
||||
# DCA models
|
||||
CreateDcaClientData,
|
||||
DcaClient,
|
||||
UpdateDcaClientData,
|
||||
CreateDepositData,
|
||||
|
|
@ -85,14 +83,6 @@ async def api_get_dca_client(
|
|||
# Admin extension only reads existing clients and manages their deposits
|
||||
|
||||
|
||||
# TEMPORARY: Test client creation endpoint (remove in production)
|
||||
@satmachineadmin_api_router.post("/api/v1/dca/clients", status_code=HTTPStatus.CREATED)
|
||||
async def api_create_test_dca_client(
|
||||
data: CreateDcaClientData,
|
||||
wallet: WalletTypeInfo = Depends(require_admin_key),
|
||||
) -> DcaClient:
|
||||
"""Create a test DCA client (temporary for testing)"""
|
||||
return await create_dca_client(data)
|
||||
|
||||
|
||||
@satmachineadmin_api_router.get("/api/v1/dca/clients/{client_id}/balance")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue