StaticgetStaticmergeStaticmergeStaticmetaStaticreadStaticrouteStaticserveThe swagger configuration to expose via /spec.
Optionaloption: { auth?: string; port?: number; type?: "swagger-ui" | "scalar" }
Options for serving the meta page.
Optionalauth?: stringOptional authentication key appended to the URL.
Optionalport?: numberThe port to listen on. Defaults to 9000.
Optionaltype?: "swagger-ui" | "scalar"The type of UI to serve.
A promise that resolves with the created server instance or null.
StaticwriteOptionalpath: string
Serves a meta page for Swagger UI or rapi-doc.