Skip to content

Commit

Permalink
just cache custom-metrics and instance-tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Siva Manivannan committed Jun 28, 2024
1 parent a632f58 commit c854a45
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkg/apiserver/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit c854a45

Please sign in to comment.