Download this file
| 1 | package sheets |
| 2 | |
| 3 | import ( |
| 4 | "net/http" |
| 5 | |
| 6 | "amadan.net/oficina/home/teammode" |
| 7 | ) |
| 8 | |
| 9 | // teamProbePath is the readiness probe Alta polls at provisioning step 11 |
| 10 | // before it activates this instance in Home's directory: teammode's |
| 11 | // Probe, unauthenticated, no-store, {team_mode, consumer, roster} and no |
| 12 | // account data, {"team_mode":false} with team mode off. |
| 13 | const teamProbePath = teammode.ProbePath |
| 14 | |
| 15 | func (a *App) handleTeamProbe(w http.ResponseWriter, r *http.Request) { |
| 16 | var rt *teammode.Runtime |
| 17 | if a.team != nil { |
| 18 | rt = a.team.Runtime |
| 19 | } |
| 20 | teammode.Probe(rt).ServeHTTP(w, r) |
| 21 | } |
| 22 | |