CodeIssuesDiscussionsWikiPull RequestsProjectsCommitsActionsReleasesContributorsPulse● GatesSecuritySettingsDeploymentsPipelineInsightsAgents✨ Explain✨ Ask AI✨ Workspace✨ Spec✨ Tests▓ Debt Map✨ NL Search🏛 Archaeology
Blame · Line-by-line history
platform-status.ts
Each line is annotated with the commit that last touched it. Click any SHA to jump to that commit and see the surrounding change.
| 3bd8e2f | 1 | import { Hono } from "hono"; |
| 2 | ||
| 3 | const PRODUCT = "gluecron" as const; | |
| 4 | const VERSION = process.env.APP_VERSION ?? "dev"; | |
| 5 | const COMMIT = process.env.GIT_COMMIT ?? "unknown"; | |
| 6 | ||
| 7 | const SIBLINGS = { | |
| 8 | crontech: "https://crontech.ai/api/platform-status", | |
| 9 | gluecron: "https://gluecron.com/api/platform-status", | |
| 10 | gatetest: "https://gatetest.io/api/platform-status", | |
| 11 | } as const; | |
| 12 | ||
| 13 | export const platformStatus = new Hono(); | |
| 14 | ||
| 15 | platformStatus.get("/", (c) => { | |
| 16 | c.header("cache-control", "no-store"); | |
| 17 | c.header("access-control-allow-origin", "*"); | |
| 18 | return c.json({ | |
| 19 | product: PRODUCT, | |
| 20 | version: VERSION, | |
| 21 | commit: COMMIT, | |
| 22 | healthy: true, | |
| 23 | timestamp: new Date().toISOString(), | |
| 24 | siblings: SIBLINGS, | |
| 25 | }); | |
| 26 | }); |