chore: crush git history - reborn from consolidation on 2026-03-10
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
import Fastify from "fastify";
|
||||
import apophisPlugin from "../../../index.js";
|
||||
|
||||
const app = Fastify({ logger: false });
|
||||
|
||||
await app.register(import("@fastify/swagger"), {
|
||||
openapi: {
|
||||
info: { title: "Verify No Contracts", version: "1.0.0" },
|
||||
},
|
||||
});
|
||||
|
||||
await app.register(apophisPlugin, { runtime: "off" });
|
||||
|
||||
app.get(
|
||||
"/health",
|
||||
{
|
||||
schema: {
|
||||
description: "Health check route with schema only",
|
||||
response: {
|
||||
200: {
|
||||
type: "object",
|
||||
properties: {
|
||||
status: { type: "string" },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
async () => ({ status: "ok" }),
|
||||
);
|
||||
|
||||
export default app;
|
||||
Reference in New Issue
Block a user