docs: update SESSION_STATE.md - Admin endpoint paths fixed
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
# CURRENT AI WORKING SESSION — HANDOVER
|
# CURRENT AI WORKING SESSION — HANDOVER
|
||||||
|
|
||||||
**Active AI:** Claude Haiku 4.5
|
**Active AI:** Claude Haiku 4.5
|
||||||
**Last Updated:** 2026-04-19 (Session 7 - FINAL VALIDATION COMPLETE)
|
**Last Updated:** 2026-04-19 (Session 8 - Admin Endpoint Fix)
|
||||||
**Current Version:** v1.10.16 (version saved and merged to master)
|
**Current Version:** v1.10.16 (version saved and merged to master)
|
||||||
**Branch:** refactor/ai-friendly-v2 (All 3 Phases: ✅ FINAL VALIDATION COMPLETE)
|
**Branch:** refactor/ai-friendly-v2 (All 3 Phases: ✅ FINAL VALIDATION COMPLETE)
|
||||||
|
|
||||||
@@ -542,6 +542,34 @@
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## WHAT WAS COMPLETED THIS SESSION (Session 8: Admin Endpoint Fix)
|
||||||
|
|
||||||
|
### Fixed Admin API Endpoint Paths — COMPLETE ✅
|
||||||
|
|
||||||
|
**Issue:** Phase 3 split admin/config.py into ai_config.py and db_config.py with new route paths, but frontend was still calling old endpoints, causing 404 errors.
|
||||||
|
|
||||||
|
**Solution Implemented:**
|
||||||
|
- Updated `frontend/lib/api.ts` (7 changes):
|
||||||
|
- `getAiPrompt()` — `/admin/db/settings/prompt` → `/admin/ai/settings/prompt`
|
||||||
|
- `updateAiPrompt()` — `/admin/db/settings/prompt` → `/admin/ai/settings/prompt`
|
||||||
|
- `getAiConfig()` — `/admin/db/settings/ai` → `/admin/ai/settings`
|
||||||
|
- `updateAiProvider()` — `/admin/db/settings/ai` → `/admin/ai/settings`
|
||||||
|
- `updateAiKeys()` — `/admin/db/settings/ai-keys` → `/admin/ai/settings/keys`
|
||||||
|
- `testAiKey()` — `/admin/db/settings/test-ai-key` → `/admin/ai/settings/test-key`
|
||||||
|
- `getSystemSettings()` — Updated prompt fetch to use `/admin/ai/settings/prompt`
|
||||||
|
|
||||||
|
**Test Results:**
|
||||||
|
- Frontend: **291/291 passing** ✅
|
||||||
|
- Backend: **41/41 passing** ✅
|
||||||
|
- No 404 errors on admin API calls
|
||||||
|
|
||||||
|
**Commit Created:**
|
||||||
|
- `63364c1d` fix: update admin API endpoint paths to match split routers
|
||||||
|
|
||||||
|
**Status:** Ready for merge. All endpoints now correctly route to split admin config routers.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## SYSTEM STATE
|
## SYSTEM STATE
|
||||||
|
|
||||||
**Current Version:** `v1.10.16`
|
**Current Version:** `v1.10.16`
|
||||||
|
|||||||
Reference in New Issue
Block a user