summaryrefslogtreecommitdiff
path: root/frontend/app/api/fs
diff options
context:
space:
mode:
authordiogo464 <[email protected]>2025-08-12 16:28:33 +0100
committerdiogo464 <[email protected]>2025-08-12 16:28:33 +0100
commit70738d871decbcdec4f5535a7b6f57de26de7d2a (patch)
tree6402994fefa3bed8c352e24d20b53cb59a75afa0 /frontend/app/api/fs
parent507d9ee9ae524edd4e39942b735d987aa5d48359 (diff)
Clean up old UI code and rename V2 to Drive
- Remove old UI components: file-drive.tsx, history-view.tsx - Remove unused API endpoints: /api/tree, /api/log, /api/fs/route.ts - Rename /v2 routes to /drive routes for cleaner URLs - Rename V2* components to Drive* components (V2DirectoryView -> DriveDirectoryView, etc.) - Update all breadcrumb and navigation references from /v2 to /drive - Redirect root path to /drive instead of old UI - Keep /api/fs/[...path] and /api/directories for uploads and move functionality - Preserve Drive_* server functions for potential future use 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
Diffstat (limited to 'frontend/app/api/fs')
-rw-r--r--frontend/app/api/fs/route.ts19
1 files changed, 0 insertions, 19 deletions
diff --git a/frontend/app/api/fs/route.ts b/frontend/app/api/fs/route.ts
deleted file mode 100644
index 61d0f8a..0000000
--- a/frontend/app/api/fs/route.ts
+++ /dev/null
@@ -1,19 +0,0 @@
1import { NextResponse } from 'next/server'
2import { Drive_ls } from '@/lib/drive_server'
3
4// GET /api/fs - Get root directory listing
5export async function GET() {
6 try {
7 // Get root directory listing using Drive_ls (non-recursive)
8 const entries = await Drive_ls('/', false)
9
10 return NextResponse.json(entries)
11
12 } catch (error) {
13 console.error('GET fs root error:', error)
14 return NextResponse.json(
15 { error: error instanceof Error ? error.message : 'Internal server error' },
16 { status: 500 }
17 )
18 }
19} \ No newline at end of file