mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-13 08:15:17 +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 parent
b3bb06607c
commit
9382278704
3 files changed
+3
-3
No files matched your search
+1
-1
@@ -41,7 +41,7 @@ export default function App() {
|
|||||||
<Route element={<Layout />}>
|
<Route element={<Layout />}>
|
||||||
<Route path="/" element={<HomePage />} />
|
<Route path="/" element={<HomePage />} />
|
||||||
<Route path="/analytics" element={<AnalyticsPage />} />
|
<Route path="/analytics" element={<AnalyticsPage />} />
|
||||||
<Route path="/api" element={<ApiPage />} />
|
<Route path="/providers" element={<ApiPage />} />
|
||||||
<Route path="/cliproxy" element={<CliproxyPage />} />
|
<Route path="/cliproxy" element={<CliproxyPage />} />
|
||||||
<Route path="/cliproxy/control-panel" element={<CliproxyControlPanelPage />} />
|
<Route path="/cliproxy/control-panel" element={<CliproxyControlPanelPage />} />
|
||||||
<Route path="/copilot" element={<CopilotPage />} />
|
<Route path="/copilot" element={<CopilotPage />} />
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ const navGroups = [
|
|||||||
{
|
{
|
||||||
title: 'Identity & Access',
|
title: 'Identity & Access',
|
||||||
items: [
|
items: [
|
||||||
{ path: '/api', icon: Key, label: 'API Profiles' },
|
{ path: '/providers', icon: Key, label: 'API Profiles' },
|
||||||
{
|
{
|
||||||
path: '/cliproxy',
|
path: '/cliproxy',
|
||||||
icon: Zap,
|
icon: Zap,
|
||||||
|
|||||||
@@ -138,7 +138,7 @@ export function HomePage() {
|
|||||||
value={overview?.profiles ?? 0}
|
value={overview?.profiles ?? 0}
|
||||||
icon={Key}
|
icon={Key}
|
||||||
variant="accent"
|
variant="accent"
|
||||||
onClick={() => navigate('/api')}
|
onClick={() => navigate('/providers')}
|
||||||
/>
|
/>
|
||||||
<InlineStat
|
<InlineStat
|
||||||
title="CLIProxy"
|
title="CLIProxy"
|
||||||
|
|||||||
Reference in new issue
Block a user