Commit 2ebce75
Fix recordings API 404 error and schema mismatch
This commit resolves two critical issues:
1. Double prefix problem: Routes were registered at /recordings/api/recordings/*
instead of /recordings/* due to duplicate prefixes in both the router
definition and app.include_router() call. Fixed by removing the prefix
from the APIRouter initialization in api_recording.py:68.
2. Schema mismatch: ChannelConfig model had 'parameter' field but frontend
expected 'class_name', 'channel', and 'method_name'. Updated the model
to match frontend expectations, making 'label' optional.
Fixes: #404 on all /recordings/* endpoints
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 641f56f commit 2ebce75
1 file changed
Lines changed: 5 additions & 3 deletions
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| |||
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
68 | | - | |
| 70 | + | |
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
| |||
0 commit comments