ops(api): lägg till /ops/v1/health för EOC
This commit is contained in:
@@ -35,6 +35,11 @@ function requireOpsToken(app: FastifyInstance) {
|
||||
export async function opsRoutes(app: FastifyInstance) {
|
||||
const preHandler = [requireOpsToken(app)];
|
||||
|
||||
app.get("/ops/v1/health", { preHandler }, async () => ({
|
||||
ok: true,
|
||||
app: "cibello",
|
||||
}));
|
||||
|
||||
app.get("/ops/v1/summary", { preHandler }, async (_req, reply) => {
|
||||
const [json, ts] = await app.redis.mget(CACHE_KEY, CACHE_TS_KEY);
|
||||
if (!json) {
|
||||
|
||||
Reference in New Issue
Block a user