diff options
| author | diogo464 <[email protected]> | 2025-08-11 16:28:59 +0100 |
|---|---|---|
| committer | diogo464 <[email protected]> | 2025-08-11 16:28:59 +0100 |
| commit | 2e02765e4b79d0d145520f9005c75d382805dc2e (patch) | |
| tree | 08e0279988c804ad9e4e9301a2e23648decf292d /src/main.rs | |
| parent | 68afafc281103c32b193d5f116d87f74187bdc63 (diff) | |
implement RESTful API and remove legacy endpoints
- Created unified /api/fs/[...path] endpoint with full REST methods:
- GET: List directory contents or file info
- POST: Create directories using Drive_mkdir()
- PUT: Upload files with multipart form data
- DELETE: Remove files/directories using Drive_remove()
- Added /api/fs route for root directory listing
- Added Drive_mkdir() function to drive_server.ts using fctdrive mkdir command
- Removed legacy /api/delete and /api/upload endpoints
- Updated CLAUDE.md with comprehensive API documentation and examples
- All endpoints support authentication with AUTH: 1 header in development
- Proper error handling, file size validation, and cache revalidation
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
Diffstat (limited to 'src/main.rs')
0 files changed, 0 insertions, 0 deletions
