IKHSAN
EN Read in EnglishID

homeio

Publik

Fork dari doctor-io/homeio

Branch
main
Commit terakhir
958d74616 Oktober 2026

route.ts

Buka raw
import { NextResponse } from "next/server";
import { createRequestId, withServerTiming } from "@/lib/server/logging/logger";

export const runtime = "nodejs";

export async function GET() {
  const requestId = createRequestId();

  return withServerTiming(
    {
      layer: "api",
      action: "health.get",
      requestId,
    },
    async () =>
      NextResponse.json({
        ok: true,
        service: "home-server",
        timestamp: new Date().toISOString(),
      }),
  );
}
byte
489
baris
23
Jenis
ts
Commit terakhir
16 Oktober 2026