Skip to content

Commit

Permalink
Merge pull request #46 from Hardik13579/FRBI-2816-Determine_tenant_ty…
Browse files Browse the repository at this point in the history
…pe_in_microapp

added isCloud field in app and a utility method
  • Loading branch information
kn-cyberinc authored May 5, 2022
2 parents 68f93bb + daf677d commit d8114d6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,10 @@ func (app *App) Stop() {
}
}

func (app *App) IsOnCloud() bool {
return (strings.ToUpper(app.Config.GetString("LICENSE_MODE")) == "CLOUD")
}

type httpStatusRecorder struct {
http.ResponseWriter
status int
Expand Down

0 comments on commit d8114d6

Please sign in to comment.