Compare commits

...

2 Commits

Author SHA1 Message Date
Warren f49e0a8b36 Update AGENTS.md: WebDAV and Download Center status
Test / test (push) Has been cancelled
Test / build (push) Has been cancelled
2026-06-19 09:20:59 +08:00
Warren a235be312f Fix duplicate route panic: Remove conflicting '/' route 2026-06-19 09:20:20 +08:00
2 changed files with 9 additions and 7 deletions
+9 -6
View File
@@ -1627,8 +1627,8 @@ cargo test -p markbase-core --lib # 153 passed, 0 failed
## WebDAV VFS 整合(已完成)✅
**狀態**:核心模組完成,路由待整合(避免影響 Download Center)
**Commit**: eb80c07
**狀態**:核心模組完成,CLI 已測試成功
**Commits**: eb80c07 (核心), a235be3 (路由修復)
### 已完成
- ✅ webdav.rs 模塊創建(VfsDavFs, VfsDavFile, VfsDavMetaData)
@@ -1638,10 +1638,13 @@ cargo test -p markbase-core --lib # 153 passed, 0 failed
- ✅ CLI webdav.rs 更新(使用 VFS)
- ✅ Upload Hook 整合(flush時觸發)
- ✅ bytes 依賴添加
- ✅ Port 8002 CLI 測試成功(PROPFIND 返回文件列表)
### 待完成(需在 Port 11439 測試)
- ⏳ WebDAV 路由整合(避免影響 Port 11438)
- ⏳ DELETE/MKCOL/COPY/MOVE 操作
### Download Center 修復(2026-06-19)✅
- ✅ 移除重複路由 `/`(避免 panic)
- ✅ Port 11438 正常運行(`web-start` 命令)
- ✅ `/downloads` endpoint 正常返回 category_view.html
- ✅ 根路由 `/` 正常返回動態 markdown display
### WebDAV 功能
| 功能 | 狀態 |
@@ -1653,7 +1656,7 @@ cargo test -p markbase-core --lib # 153 passed, 0 failed
### CLI 測試方式
```bash
cargo run -- webdav-start --user demo --port 8002
cargo run --bin markbase-core -- webdav-start --user demo --port 8002
# WebDAV endpoint: http://127.0.0.1:8002/webdav/
```
-1
View File
@@ -234,7 +234,6 @@ pub async fn run(port: u16, file: Option<String>) -> anyhow::Result<()> {
.route("/files", get(|| async { Html(include_str!("file_list.html")) }))
.route("/products", get(|| async { Html(include_str!("product_manager.html")) }))
.route("/downloads", get(|| async { Html(include_str!("category_view.html")) }))
.route("/", get(|| async { Html(include_str!("category_view.html")) }))
.layer(DefaultBodyLimit::disable())
.with_state(state);