Skip to content

Commit

Permalink
Merge pull request #1093 from replicatedhq/divolgin/compatible
Browse files Browse the repository at this point in the history
License API is un-authed for compatibility
  • Loading branch information
divolgin committed Sep 11, 2020
2 parents 65e935b + 2071566 commit 58b4b41
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kotsadm/pkg/apiserver/server.go
Expand Up @@ -80,6 +80,9 @@ func Start() {
r.Path("/api/v1/preflight/app/{appSlug}/sequence/{sequence}").Methods("GET").HandlerFunc(handlers.GetPreflightStatus)
r.Path("/api/v1/preflight/app/{appSlug}/sequence/{sequence}").Methods("POST").HandlerFunc(handlers.PostPreflightStatus)

// This the handler for license API and should be called by the application only.
r.Path("/license/v1/license").Methods("GET").HandlerFunc(handlers.GetPlatformLicenseCompatibility)

/**********************************************************************
* Cluster auth routes (functions that the operator calls)
**********************************************************************/
Expand Down Expand Up @@ -128,9 +131,6 @@ func Start() {
sessionAuthRouter.Path("/api/v1/redact/spec/{slug}").Methods("DELETE").HandlerFunc(handlers.DeleteRedact)
sessionAuthRouter.Path("/api/v1/redact/enabled/{slug}").Methods("POST").HandlerFunc(handlers.SetRedactEnabled)

// This the handler for license API and should be called by the application only.
sessionAuthRouter.Path("/license/v1/license").Methods("GET").HandlerFunc(handlers.GetPlatformLicenseCompatibility)

// Apps
sessionAuthRouter.Path("/api/v1/apps").Methods("GET").HandlerFunc(handlers.ListApps)
sessionAuthRouter.Path("/api/v1/apps/app/{appSlug}").Methods("GET").HandlerFunc(handlers.GetApp)
Expand Down

0 comments on commit 58b4b41

Please sign in to comment.