Skip to content

Commit

Permalink
fix router api
Browse files Browse the repository at this point in the history
  • Loading branch information
fuwx295 committed Oct 16, 2024
1 parent f4a8547 commit 7ee7a99
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion backend/pkg/api/log/func_updatelogparserule.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func (h *handler) UpdateLogParseRule() core.HandlerFunc {
c.AbortWithError(core.Error(
http.StatusBadRequest,
code.UpdateLogParseRuleError,
code.Text(code.UpdateLogParseRuleError)).WithError(err),
code.Text(code.UpdateLogParseRuleError)+": "+err.Error()).WithError(err),
)
return
}
Expand Down
6 changes: 3 additions & 3 deletions backend/pkg/router/router_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ func setApiRouter(r *resource) {
logApi.GET("/rule/get", logHandler.GetLogParseRule())
logApi.POST("/rule/update", logHandler.UpdateLogParseRule())
logApi.POST("/rule/add", logHandler.AddLogParseRule())
logApi.POST("/rule/delete", logHandler.DeleteLogParseRule())
logApi.DELETE("/rule/delete", logHandler.DeleteLogParseRule())

logApi.GET("/other", logHandler.OtherTable())
logApi.POST("/other/table", logHandler.OtherTableInfo())
logApi.GET("/other/table", logHandler.OtherTableInfo())
logApi.POST("/other/add", logHandler.AddOtherTable())
logApi.POST("/other/delete", logHandler.DeleteOtherTable())
logApi.DELETE("/other/delete", logHandler.DeleteOtherTable())
}

traceApi := r.mux.Group("/api/trace")
Expand Down

0 comments on commit 7ee7a99

Please sign in to comment.