[PR #686] [MERGED] feat: support ?json on file path #4795

Closed
opened 2026-05-27 23:06:40 +03:00 by zhus · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/sigoden/dufs/pull/686
Author: @sigoden
Created: 4/23/2026
Status: Merged
Merged: 4/23/2026
Merged by: @sigoden

Base: mainHead: feat


📝 Commits (1)

  • 0331570 feat: support ?json on file path

📊 Changes

2 files changed (+44 additions, -1 deletions)

View changed files

📝 src/server.rs (+28 -1)
📝 tests/http.rs (+16 -0)

📄 Description

$ curl localhost:5000/README.md?json
{
  "path_type": "File",
  "name": "README.md",
  "mtime": 1707295710325,
  "size": 11385
}

Close #682


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/sigoden/dufs/pull/686 **Author:** [@sigoden](https://github.com/sigoden) **Created:** 4/23/2026 **Status:** ✅ Merged **Merged:** 4/23/2026 **Merged by:** [@sigoden](https://github.com/sigoden) **Base:** `main` ← **Head:** `feat` --- ### 📝 Commits (1) - [`0331570`](https://github.com/sigoden/dufs/commit/0331570d65d95be3562e6dcdceccbad109c3b33b) feat: support `?json` on file path ### 📊 Changes **2 files changed** (+44 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/server.rs` (+28 -1) 📝 `tests/http.rs` (+16 -0) </details> ### 📄 Description ``` $ curl localhost:5000/README.md?json { "path_type": "File", "name": "README.md", "mtime": 1707295710325, "size": 11385 } ``` Close #682 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
zhus added the pull-request label 2026-05-27 23:06:40 +03:00
zhus closed this issue 2026-05-27 23:06:41 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#4795