Skip to content

Commit cacf1b0

Browse files
committed
refactor(constants, utils): extract reusable methods and constants for deployment metrics handling
1 parent c47cb7f commit cacf1b0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lens/api/Router.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func (r MuxRouter) Init() {
5555
r.Router.Path("/deployment-metrics").HandlerFunc(r.restHandler.GetDeploymentMetrics).
5656
Queries("app_id", "{app_id}", "env_id", "{env_id}", "from", "{from}", "to", "{to}").
5757
Methods("GET", "OPTIONS")
58-
r.Router.Path("/deployment-metrics/bulk").HandlerFunc(r.restHandler.GetBulkDeploymentMetrics).Methods("POST", "OPTIONS")
58+
r.Router.Path("/deployment-metrics/bulk").HandlerFunc(r.restHandler.GetBulkDeploymentMetrics).Methods("GET", "OPTIONS")
5959
r.Router.Path("/new-deployment-event").HandlerFunc(r.restHandler.ProcessDeploymentEvent).Methods("POST")
6060
r.Router.Path("/reset-app-environment").HandlerFunc(r.restHandler.ResetApplication).Methods("POST")
6161

0 commit comments

Comments
 (0)