[PR #5127] [MERGED] refactor: separate API handlers into dedicated packages with improved HTTP utilities #5139

Closed
opened 2026-05-05 14:55:28 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fatedier/frp/pull/5127
Author: @fatedier
Created: 1/14/2026
Status: Merged
Merged: 1/14/2026
Merged by: @fatedier

Base: devHead: new


📝 Commits (1)

  • 97dcb1e refactor: separate API handlers into dedicated packages with improved HTTP utilities

📊 Changes

15 files changed (+984 additions, -790 deletions)

View changed files

📝 README.md (+0 -1)
📝 client/admin_api.go (+28 -217)
client/api/controller.go (+189 -0)
client/api/types.go (+29 -0)
📝 pkg/sdk/client/client.go (+5 -5)
pkg/util/http/context.go (+57 -0)
pkg/util/http/error.go (+33 -0)
pkg/util/http/handler.go (+66 -0)
pkg/util/http/middleware.go (+40 -0)
server/api/controller.go (+346 -0)
server/api/types.go (+131 -0)
📝 server/control.go (+2 -1)
server/dashboard_api.go (+0 -563)
📝 server/registry/registry.go (+15 -1)
📝 server/service.go (+43 -2)

📄 Description

WHY


🔄 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/fatedier/frp/pull/5127 **Author:** [@fatedier](https://github.com/fatedier) **Created:** 1/14/2026 **Status:** ✅ Merged **Merged:** 1/14/2026 **Merged by:** [@fatedier](https://github.com/fatedier) **Base:** `dev` ← **Head:** `new` --- ### 📝 Commits (1) - [`97dcb1e`](https://github.com/fatedier/frp/commit/97dcb1e34b1d7526bebfff814e1e2d98cb0e1e37) refactor: separate API handlers into dedicated packages with improved HTTP utilities ### 📊 Changes **15 files changed** (+984 additions, -790 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+0 -1) 📝 `client/admin_api.go` (+28 -217) ➕ `client/api/controller.go` (+189 -0) ➕ `client/api/types.go` (+29 -0) 📝 `pkg/sdk/client/client.go` (+5 -5) ➕ `pkg/util/http/context.go` (+57 -0) ➕ `pkg/util/http/error.go` (+33 -0) ➕ `pkg/util/http/handler.go` (+66 -0) ➕ `pkg/util/http/middleware.go` (+40 -0) ➕ `server/api/controller.go` (+346 -0) ➕ `server/api/types.go` (+131 -0) 📝 `server/control.go` (+2 -1) ➖ `server/dashboard_api.go` (+0 -563) 📝 `server/registry/registry.go` (+15 -1) 📝 `server/service.go` (+43 -2) </details> ### 📄 Description ### WHY <!-- author to complete --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 14:55:28 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#5139
No description provided.