Skip to content

Commit

Permalink
fix integration stats path
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoandredinis authored and github-actions committed Nov 26, 2024
1 parent c33361f commit 2046a8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/web/apiserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -973,8 +973,8 @@ func (h *Handler) bindDefaultEndpoints() {
h.GET("/webapi/sites/:site/integrations", h.WithClusterAuth(h.integrationsList))
h.POST("/webapi/sites/:site/integrations", h.WithClusterAuth(h.integrationsCreate))
h.GET("/webapi/sites/:site/integrations/:name", h.WithClusterAuth(h.integrationsGet))
h.GET("/webapi/sites/:site/integrationdashboard/:name", h.WithClusterAuth(h.integrationDashboard))
h.PUT("/webapi/sites/:site/integrations/:name", h.WithClusterAuth(h.integrationsUpdate))
h.GET("/webapi/sites/:site/integrations/:name/stats", h.WithClusterAuth(h.integrationStats))
h.DELETE("/webapi/sites/:site/integrations/:name_or_subkind", h.WithClusterAuth(h.integrationsDelete))

// GET the Microsoft Teams plugin app.zip file.
Expand Down
4 changes: 2 additions & 2 deletions lib/web/integrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,8 @@ func (h *Handler) integrationsGet(w http.ResponseWriter, r *http.Request, p http
return uiIg, nil
}

// integrationDashboard returns the integration summary.
func (h *Handler) integrationDashboard(w http.ResponseWriter, r *http.Request, p httprouter.Params, sctx *SessionContext, site reversetunnelclient.RemoteSite) (interface{}, error) {
// integrationStats returns the integration stats.
func (h *Handler) integrationStats(w http.ResponseWriter, r *http.Request, p httprouter.Params, sctx *SessionContext, site reversetunnelclient.RemoteSite) (interface{}, error) {
integrationName := p.ByName("name")
if integrationName == "" {
return nil, trace.BadParameter("an integration name is required")
Expand Down

0 comments on commit 2046a8a

Please sign in to comment.