refactor(ui): rename /api route to /providers

- avoid confusion with backend /api/* endpoints

- update route definition, sidebar nav, and home page link
This commit is contained in:
kaitranntt
2025-12-20 17:31:55 -05:00
parent b3bb06607c
commit 9382278704
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ export default function App() {
<Route element={<Layout />}>
<Route path="/" element={<HomePage />} />
<Route path="/analytics" element={<AnalyticsPage />} />
<Route path="/api" element={<ApiPage />} />
<Route path="/providers" element={<ApiPage />} />
<Route path="/cliproxy" element={<CliproxyPage />} />
<Route path="/cliproxy/control-panel" element={<CliproxyControlPanelPage />} />
<Route path="/copilot" element={<CopilotPage />} />
+1 -1
View File
@@ -44,7 +44,7 @@ const navGroups = [
{
title: 'Identity & Access',
items: [
{ path: '/api', icon: Key, label: 'API Profiles' },
{ path: '/providers', icon: Key, label: 'API Profiles' },
{
path: '/cliproxy',
icon: Zap,
+1 -1
View File
@@ -138,7 +138,7 @@ export function HomePage() {
value={overview?.profiles ?? 0}
icon={Key}
variant="accent"
onClick={() => navigate('/api')}
onClick={() => navigate('/providers')}
/>
<InlineStat
title="CLIProxy"