Skip to content

Commit

Permalink
Fix issue with routes
Browse files Browse the repository at this point in the history
  • Loading branch information
bonzofenix committed Nov 21, 2024
1 parent 6be0f14 commit 2ce5100
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/autoscaler/api/publicapiserver/public_api_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ func (h *PublicApiHandler) GetAggregatedMetricsHistories(w http.ResponseWriter,
}

route := router.Get(routes.GetAggregatedMetricHistoriesRouteName)
path, err := route.URLPath("appId", appId, "metrictype", metricType)
path, err := route.URLPath("appid", appId, "metrictype", metricType)
fmt.Println("BANANA path", path)
if err != nil {
logger.Error("Failed to create path", err)
Expand Down
2 changes: 1 addition & 1 deletion src/autoscaler/routes/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const (
MetricHistoriesPath = "/v1/apps/{appid}/metric_histories/{metrictype}"
GetMetricHistoriesRouteName = "GetMetricHistories"

AggregatedMetricHistoriesPath = "/v1/apps/{appId}/aggregated_metric_histories/{metrictype}"
AggregatedMetricHistoriesPath = "/v1/apps/{appid}/aggregated_metric_histories/{metrictype}"
GetAggregatedMetricHistoriesRouteName = "GetAggregatedMetricHistories"

ScalePath = "/v1/apps/{appid}/scale"
Expand Down

0 comments on commit 2ce5100

Please sign in to comment.