mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-16 18:16:08 +00:00
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:
+1
-1
@@ -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 />} />
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -138,7 +138,7 @@ export function HomePage() {
|
||||
value={overview?.profiles ?? 0}
|
||||
icon={Key}
|
||||
variant="accent"
|
||||
onClick={() => navigate('/api')}
|
||||
onClick={() => navigate('/providers')}
|
||||
/>
|
||||
<InlineStat
|
||||
title="CLIProxy"
|
||||
|
||||
Reference in New Issue
Block a user