Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
c15b419c
Commit
c15b419c
authored
Dec 19, 2025
by
shaw
Browse files
feat(backend): 添加 event_logging 接口直接返回200
将原本在nginx处理的遥测日志请求移至后端, 忽略Claude Code客户端发送的日志数据。
parent
5bd27a5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
backend/internal/server/router.go
View file @
c15b419c
...
...
@@ -36,6 +36,11 @@ func registerRoutes(r *gin.Engine, h *handler.Handlers, s *service.Services, rep
c
.
JSON
(
http
.
StatusOK
,
gin
.
H
{
"status"
:
"ok"
})
})
// Claude Code 遥测日志(忽略,直接返回200)
r
.
POST
(
"/api/event_logging/batch"
,
func
(
c
*
gin
.
Context
)
{
c
.
Status
(
http
.
StatusOK
)
})
// Setup status endpoint (always returns needs_setup: false in normal mode)
// This is used by the frontend to detect when the service has restarted after setup
r
.
GET
(
"/setup/status"
,
func
(
c
*
gin
.
Context
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment