From c854a45185428b949f37f0cff767754449b4e252 Mon Sep 17 00:00:00 2001 From: Siva Manivannan Date: Fri, 28 Jun 2024 10:16:21 -0500 Subject: [PATCH] just cache custom-metrics and instance-tags --- pkg/apiserver/server.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/apiserver/server.go b/pkg/apiserver/server.go index f44e32d..6b45342 100644 --- a/pkg/apiserver/server.go +++ b/pkg/apiserver/server.go @@ -62,14 +62,14 @@ func Start(params APIServerParams) { r.HandleFunc("/healthz", handlers.Healthz) // license - cachedRouter.HandleFunc("/api/v1/license/info", handlers.GetLicenseInfo).Methods("GET") - cachedRouter.HandleFunc("/api/v1/license/fields", handlers.GetLicenseFields).Methods("GET") - cachedRouter.HandleFunc("/api/v1/license/fields/{fieldName}", handlers.GetLicenseField).Methods("GET") + r.HandleFunc("/api/v1/license/info", handlers.GetLicenseInfo).Methods("GET") + r.HandleFunc("/api/v1/license/fields", handlers.GetLicenseFields).Methods("GET") + r.HandleFunc("/api/v1/license/fields/{fieldName}", handlers.GetLicenseField).Methods("GET") // app - cachedRouter.HandleFunc("/api/v1/app/info", handlers.GetCurrentAppInfo).Methods("GET") - cachedRouter.HandleFunc("/api/v1/app/updates", handlers.GetAppUpdates).Methods("GET") - cachedRouter.HandleFunc("/api/v1/app/history", handlers.GetAppHistory).Methods("GET") + r.HandleFunc("/api/v1/app/info", handlers.GetCurrentAppInfo).Methods("GET") + r.HandleFunc("/api/v1/app/updates", handlers.GetAppUpdates).Methods("GET") + r.HandleFunc("/api/v1/app/history", handlers.GetAppHistory).Methods("GET") cachedRouter.HandleFunc("/api/v1/app/custom-metrics", handlers.SendCustomAppMetrics).Methods("POST", "PATCH") cachedRouter.HandleFunc("/api/v1/app/custom-metrics/{key}", handlers.DeleteCustomAppMetricsKey).Methods("DELETE") cachedRouter.HandleFunc("/api/v1/app/instance-tags", handlers.SendAppInstanceTags).Methods("POST")