Adapted from #3579 by @gorkem-bwl. The openapi/registry, helpers, and per-resource routes/* files are largely their work; this commit relocates the directory out of src/ so the build-time generator code is not emitted into dist/, and shifts spec generation from runtime to a build step. Co-authored-by: gorkem-bwl <gorkem.cetin@bluewavelabs.ca>
14 lines
516 B
TypeScript
14 lines
516 B
TypeScript
import { registry } from "../registry.js";
|
|
import { bearer, okUnknown, standardErrors } from "../helpers.js";
|
|
import { getChecksParamValidation, getChecksQueryValidation } from "@/validation/checkValidation.js";
|
|
|
|
registry.registerPath({
|
|
method: "get",
|
|
path: "/geo-checks/{monitorId}",
|
|
tags: ["geo-checks"],
|
|
summary: "Get geo check results for a monitor",
|
|
security: bearer,
|
|
request: { params: getChecksParamValidation, query: getChecksQueryValidation },
|
|
responses: { "200": okUnknown, ...standardErrors },
|
|
});
|