后端: 添加后端README
This commit is contained in:
parent
7eb6d851de
commit
b00b5ef4b8
@ -1,20 +1,24 @@
|
|||||||
# CloudDisk Backend
|
# CloudDisk Backend
|
||||||
|
|
||||||
## 开发指南
|
## 开发
|
||||||
|
|
||||||
### 安装
|
|
||||||
```bash
|
```bash
|
||||||
npm install
|
npm install
|
||||||
|
npm run dev
|
||||||
```
|
```
|
||||||
|
|
||||||
### 启动
|
## 测试
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm start
|
npm test
|
||||||
```
|
```
|
||||||
|
|
||||||
### API 端点
|
## API列表
|
||||||
- POST /api/auth/login
|
|
||||||
- POST /api/auth/register
|
- /api/auth - 认证
|
||||||
- GET /api/files
|
- /api/files - 文件管理
|
||||||
- POST /api/files/upload
|
- /api/share - 分享
|
||||||
- DELETE /api/files/:id
|
- /api/search - 搜索
|
||||||
|
- /api/trash - 回收站
|
||||||
|
- /api/stats - 统计
|
||||||
|
- /api/health - 健康检查
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user