Do this thing to make Pano happy :)

pull/1144/head
perf3ct 2025-02-10 16:03:01 +07:00
parent 57a34e5c02
commit 9c86a03acc
No known key found for this signature in database
GPG Key ID: 569C4EEC436F5232
1 changed files with 2 additions and 1 deletions

@ -4,11 +4,12 @@ import { readFile } from "fs/promises";
import { fileURLToPath } from "url";
import { dirname, join } from "path";
import yaml from "js-yaml";
import type { JsonObject } from "swagger-ui-express";
const __dirname = dirname(fileURLToPath(import.meta.url));
const swaggerDocument = yaml.load(
await readFile(join(__dirname, "../etapi/etapi.openapi.yaml"), "utf8")
) as object;
) as JsonObject;
function register(router: Router) {
router.use(